Create BufferedReader from FileReader and Read / display lines from file
import java.io.BufferedReader; import java.io.FileReader; class BufferedReaderDemo { public static void main(String args[]) throws Exception { FileReader fr = new FileReader(args[0]); // Create a buffered reader BufferedReader br = new BufferedReader(fr); // Read and display lines from file String s; while ((s = br.readLine()) != null) System.out.println(s); fr.close(); } }