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: shivax
Subject: Re: the simplest method to write text in a file
Date: Thu, 14 Mar 2019 18:41:11 -0500 (CDT)

hi,
i've a little problem

i have two pc

i write this code:

filename="Predator.log"; 
fid = fopen(filename, "w"); 

fprintf(fid,"Starting Date : %s \n",datestr(StartingDate,20));
fprintf(fid,"Finishing Date %s \n",datestr(FinishingDate,20)); 
fprintf(fid,"Start Procession Date %s \n",datestr(StartingProcessDate,20)); 
fprintf(fid,"ReportFolder : %s - OutputFolder %s
\n",ReportFolder,OutputFolder); 
fclose(fid); 

In the first pc i see  all strings on one line 
(https://gyazo.com/a5d08eecdc31a9765a7da0d5324f70e4)

in the second pc I see all the strings correctly in several
rows(https://gyazo.com/277dbd9921d27f036a9e062069d773ee)

use in both versions 4.4.1

can anyone explain me the reason? txk






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



reply via email to

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