[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: file IO Query
From: |
Julian A. de Marchi, Ph.D |
Subject: |
RE: file IO Query |
Date: |
Mon, 30 Oct 2000 19:19:50 -0500 |
Why not simply
fid = fopen(...);
while (þfeof(fid))
:
end;
-----Original Message-----
From: address@hidden
[mailto:address@hidden Behalf Of Darren Farmer
Sent: Monday, October 30, 2000 7:07 PM
To: address@hidden
Subject: file IO Query
Can anyone advise a simple while/eof protocol for testing for eof when
loading lines of data from a file.
typically in C I would use something like
while (fgets(fid,255,str)!=NULL)
...etc
at present in octave I am using....
while (status==1)
lstr=fgets(iFID,200);
if (feof(iFID)==1)
break;
end
....etc
thnaks
Darren Farmer
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------