Reading A Text file In Java
Java makes available Reader classes to read character data from a number of different input sources. The BufferedReader class efficiently reads text from a file. Heres a simple Junit test as an example. and heres the output we get