import java.io.File; import java.util.Scanner; import java.io.FileNotFoundException; import java.io.IOException; import java.io.FileWriter; import java.io.PrintWriter; class Program01 { static Dolgozo[] dolgozok = new Dolgozo[100]; static int n = 0; public static void betolt() throws FileNotFoundException { File input = new File("filbt.txt"); Scanner sc = new Scanner(input); int count = 0; while(sc.hasNextLine()) { String line = sc.nextLine(); Scanner lineSc = new Scanner(line); lineSc.useDelimiter(":"); Dolgozo dolgozo = new Dolgozo(); if(lineSc.hasNext()) { dolgozo.nev = lineSc.next(); dolgozo.telepules = lineSc.next(); dolgozo.cim = lineSc.next(); dolgozo.szuletes = lineSc.next(); dolgozo.fizetes = lineSc.nextDouble(); } dolgozok[count] = dolgozo; count++; } n = count; } public static void kiir() { for(int i=0;i