📅  最后修改于: 2022-03-11 14:47:10.882000             🧑  作者: Mango
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