help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the simplest method to write text in a file


From: roland65
Subject: Re: the simplest method to write text in a file
Date: Tue, 12 Mar 2019 07:18:26 -0500 (CDT)

shivax wrote
> finename="example.log";
> fprintf(filename,"Starting Date : %s - Finishing Date %s ",B);

Hi,
use this:

finename="example.log";
fid = fopen(filename, "w");
fprintf(fid,"Starting Date : %s - Finishing Date %s ",B);
fclose(fid);

This is somewhat like in C language...





--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]