readbytes.java
来自「本java源程序包括了大量的学习程序(共27章)方便大家学习」· Java 代码 · 共 21 行
JAVA
21 行
import java.io.*;class ReadBytes{ public static void main(String argv[]) { int b; int count=0; try { FileInputStream file = new FileInputStream("FilesView.class"); while((b=file.read())!=-1) { System.out.print(b+" "); count++; } file.close(); }catch(IOException e){} System.out.println("\nThis file have "+count+" bytes."); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?