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

Leave a Comment

Your email address will not be published. Required fields are marked *