⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 copybytes.java

📁 nanjing university cs 的java课件。 对新手很有用。付课件中源码。
💻 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 + -