help-octave
[Top][All Lists]
Advanced

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

the simplest method to write text in a file


From: shivax
Subject: the simplest method to write text in a file
Date: Tue, 12 Mar 2019 05:52:56 -0500 (CDT)

Hi,
i want write text and variables in a file 

Example:
A=12/02/2012
B=02/01/2012

Starting Date : A
Finiscing Date: B
..
..

i try to use Save but is no good

# name: StartingDate
# type: global scalar
..


i try to use fprintf but i don't understand how i save in a file


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

it don't write in a file

someone can help me? thanks







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



reply via email to

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