Read a text file with standard Java BufferedReader. This is faster than RandomAccessFile, but slightly more lines of code. Demo of BufferedReader and FileReader. We process the text file line by line and then close the text file. Good beginning programming example. Follow along!