help-octave
[Top][All Lists]
Advanced

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

Re: simple advice needed on input and output


From: c.
Subject: Re: simple advice needed on input and output
Date: Sun, 8 Jul 2012 07:53:44 +0200

Il giorno 08/lug/2012, alle ore 07.00, vilsu ha scritto:

> fid = fopen ("in.txt");
>     for i = 1:229799
>        x = eval (fgetl (fid))
>        save -append out.txt x
>     endfor;
> fclose (fid)

Is this reading the whole contents of the file "in.txt"? 
If it is so, then your code is equivalent to:

source in.txt
save out.txt x

c.



reply via email to

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