Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- import java.util.Scanner;
- class main {
- public static void main(String[] args) {
- int i;
- try {
- Scanner scanner = new Scanner(new File("data.ini"));
- while (scanner.hasNextInt())
- {
- i = scanner.nextInt();
- System.out.println(i);
- }
- }
- catch (FileNotFoundException e) {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement