Commit aea10dd8 by Patryk Czarnik

Początek zabawy z emps.csv

parent e89dd59f
package emps.v1_nieobiektowo;
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;
public class WypiszDane {
public static void main(String[] args) {
// Otwieram plik za pomocą klasy Scanner:
try(Scanner scanner = new Scanner(new File("pliki/emps.csv"))) {
while(scanner.hasNextLine()) {
String linia = scanner.nextLine();
System.out.println(linia);
}
} catch(FileNotFoundException e) {
e.printStackTrace();
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment