📜  java 从命令行参数读取文件 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:22.435000             🧑  作者: Mango

代码示例1
import java.util.Scanner;
import java.io.File;
Scanner input = new Scanner(new File(args[0])); //Where args[0] is the cmd argument, the file name