import java.io.*; import java.util.*; public class LaesTekstfil { public static void main(String[] arg) throws IOException { FileReader fil = new FileReader("skrevet fil.txt"); BufferedReader ind = new BufferedReader(fil); String linie = ind.readLine(); while (linie != null) { System.out.println("Lęst: "+linie); linie = ind.readLine(); } } }