powered by
Count the occurance of '\n', much faster than readLine and read.table. Although slower than the unix command "wc -l", it upholds platform independency.
readLine
read.table
lc(f)
the file name, or a connection.