📄 testreader.java
字号:
import java.io.*;
public class TestReader {
public static void main(String[] args) {
try {
InputStreamReader ins = new InputStreamReader(new FileInputStream("d:\\a.txt"));
int b=0;
while((b=ins.read()) != -1) {
System.out.print((char)b);
}
}catch(FileNotFoundException e) {
e.printStackTrace();
}catch(IOException e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -