import java.io.FileNotFoundException; import java.io.FileReader; public class TestFileReader { public static void main(String[] args) { int c = 0; FileReader freader = null; try { freader = new FileReader("d:/io/test.txt");//查看API 它的构造函数 int ln = 0; while((c=freader.read())!=-1){