import java.io.*; public class Voog4{ public static void main(String argumendid[]) throws IOException{ BufferedReader sisse=new BufferedReader( new FileReader("andmed.txt") ); String rida=sisse.readLine(); System.out.println("Faili esimene rida on: "+rida); System.out.println("Nd j„rjestikku k„ik faili read:"); while(rida!=null){ System.out.println(rida); rida=sisse.readLine(); } } }