I have a long text file with uneven record length and variable structure.
Therefore I have to read it line-by-line.
I found out I can open a connection to the file and read in one line at a time.
Something like:

 con <- file("MyFle.txt","r")
 while (End-Of-File) {
   line <-  readLines(con,n=1)
   ParseLine(line)
 }

But I realized I do not know how to test for the End-Of-File condition using R language.
I found a ghost documentation page mentioning an R built-in function "isEof(connection)".
But such a function is not listed in R  "utils" package it seems to belong to.

I would appreciate any comment and/or suggestion.
Thank you in advance.
Maura
 





tutti i telefonini TIM!


	[[alternative HTML version deleted]]


