public class FileFiterOperation {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new FileReader(
"D:\\java\\Tank.java"));
int ch;
while ((ch = reader.read()) > 0) {
System.out.println((char) ch);
}
}
}
实现从文件中一次读出一个字符的操作
最新推荐文章于 2024-05-23 22:42:12 发布