public class FileReader extends InputStreamReader
Convenience class for reading character files. The constructors of this class assume that the default character encoding and the default byte-buffer size are appropriate. To specify these values yourself, construct an InputStreamReader on a FileInputStream.
FileReader is meant for reading streams of characters. For reading streams of raw bytes, consider using a FileInputStream.
package com.candidjava.file; import java.io.File; import java.io.FileReader; public class FileRead { public static void main(String[] args) throws Exception { File file=new File("F:/Files/read.txt"); FileReader fr=new FileReader(file); int i; while((i=fr.read())!=-1) { System.out.println((char)i); } fr.close(); } }