<<< RandomAccessFile class | Index | BufferedReader example: reading text file >>> |
Original RandomAccessFile implementation lacked buffering; BufferedReader has much better performance
FileChannel uses NIO buffers; however, it lacks the readLine() method
In general, it is best to use a buffered sequential access (like BufferedReader) whenever possible.
<<< RandomAccessFile class | Index | BufferedReader example: reading text file >>> |