This program will read the content of the file using FileInputStream class. FileInputStream class provide the methods for file input related operations. This program is using FileInputStream.read() method which returns an integer value and them we are converting it into character. We will read values until -1 is not found. This is an example of File Handling in Java.
Read Content from File using FileInputStream in Java
Output