Reading File using Java Program and Print Content to console

Reading File using Java Program

In this tutorial you will learn Simple example about Reading File Using Java Program and Print the content of file to console. The program has been tested and output is posted in the same article.

SimpleFileReading.java

File Content

The content which displayed in the below Image fie will be read by the above Java Program. using FileReader API and the same content will be displayed in the Console output.

Reading File using Java Program

Output

Reading File using Java Program