Possible Duplicate:
Reading the last n lines from a huge text file
I have created a connection to a file using
con=file(path_of_myfile)
Now I want to read only the last line without loading everything (it is a HUGE file).
I am trying to use
?readLines
with no success.
Any idea?
Since you are on Windows, download and install Duncan’s Rtools which you would need anyways if you wanted to build R packages yourself. (If you were on Linux then the only difference is that you would not need to download anything since
gawkis already there.) Then issue this R command: