📄 testreadfully.java
字号:
import java.io.*;
public class Testreadfully{
public static void main(String[] args){
File f = new File("file.txt");
byte[] a =new byte[200];
int i = 0;
try{
RandomAccessFile raf = new RandomAccessFile(f,"r");
raf.readFully(a);
}
catch(EOFException e){
while(a[i]!=0){
System.out.print((char)a[i]);
i++;
}
}
catch(IOException e){}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -