R is fairly slow in reading files. read.table() is slow, scan() a bit faster, and readLines() fastest.
But all these are nowhere as fast as other tools that scan through files.
Let us look at an example. I have in front of me a 283M file.
(Small update: the timings where off before. First because R hashes strings, one has to...