help-octave
[Top][All Lists]
Advanced

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

file IO Query


From: Darren Farmer
Subject: file IO Query
Date: Tue, 31 Oct 2000 08:06:53 +0800 (WST)

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
-------------------------------------------------------------



reply via email to

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