package io;import java.io.*;public class FileReaderTest {
public static void main (String[] args) throws FileNotFoundException{
FileReader fr = null;
                  fr = new FileReader("E:\\MyEclipse\\workspace\\src\\src\\io\\FileReaderTest.java");
int b = 0;

try {
while((b=fr.read())!=-1){
System.out.print((char)b);
}
fr.close();
} catch (IOException e) {
System.out.println("文件读取出错");
}

}}
 读本身并打印到控制台上,其他都正常,只是汉字打印不正确,是些乱码。