Skip to content

Instantly share code, notes, and snippets.

@schifano
Created October 23, 2015 02:06
Show Gist options
  • Save schifano/3ae7962bc57a3bdafe99 to your computer and use it in GitHub Desktop.
Save schifano/3ae7962bc57a3bdafe99 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
try {
Scanner sc = new Scanner(new File(args[0]));
int n = Integer.parseInt(sc.next());
for (int i = 0; i < n; i++) {
System.out.println(sc.next()); // TEST
}
} catch (FileNotFoundException e) {
System.out.println("File not found");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment