import java.util.Scanner; import java.io.File; import java.io.IOException; class Program { public static void main(String[] args) throws IOException { File file = new File("adat.txt"); Scanner olvaso = new Scanner(file); System.out.println(olvaso.nextLine()); System.out.println(olvaso.nextLine()); } }