[R] test for end of file?

Fitzpatrick, Denis F fitzpatrickd at boystown.org
Fri Feb 2 21:11:06 CET 2001

I want to read in text files, processing a line at a time in a while loop,
and exiting the loop when the entire file has been read.  The files are too
large to suck in as a piece.
for example in :

while (line.I.just.read.in != end.of.file){

what is end.of.file? 
or what would be the functional alternative to this little snippet?


r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list