A simple Java application demonstrating how to read a text file using FileInputStream class:

FileInputStreamExample.java           test.txt