标签:
import java.io.*;
public class Reader {
public static void main(String[] args) {
char[] d = new char[3];
int buf = 0;
FileReader fr=null;
try{
fr = new FileReader("1.txt");
}catch(IOException e)
{
e.toString();
}
try{
while ((buf = fr.read(d)) != -1) {
System.out.println(d);
}
}catch(IOException e){
e.toString();
}
}
}
标签:
原文地址:http://www.cnblogs.com/striver-lm/p/5726696.html