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();
}
}
}
时间: 2024-10-09 01:23:06