I'm writing a small application in java
I read text files in various sizes and I need to read them line by line (and insert the line into array).
Is there difference between BufferedReader.ReadLine()
and RandomAccessFile.ReadLine()
, in terms of performance?
Is there any reason to prefer one or the other?