📄 example10_4.java
字号:
import java.io.*;
class Example10_4
{ public static void main(String args[])
{ int b;
byte tom[]=new byte[25];
try{ File f=new File("Example10_3.java");
FileInputStream in=new FileInputStream(f);
while((b=in.read(tom,0,25))!=-1)
{
String s=new String (tom,0,b);
System.out.println(s);
}
in.close();
}
catch(Exception e){System.out.println("File read exception"+e);}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -