📄 copybytes.java
字号:
import java.io.*;
public class CopyBytes {
public static void main(String[] args) throws IOException {
if (args.length != 2) {
throw new RuntimeException("Usage : CopyBytes < src > < dst >");
}
File inputFile = new File(args[0]);
File outputFile = new File(args[1]);
FileInputStream in = new FileInputStream(inputFile);
FileOutputStream out = new FileOutputStream(outputFile);
int c;
while ( (
c = in.read()) != -1) {
out.write(c);
}
in.close();
out.close();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -