import java.io.*; import java.util.Date; public class Fail1{ public static void main(String argumendid[]) throws IOException{ File fail=new File("nimed.txt"); if(fail.exists()){ System.out.println( "Faili "+fail.getName()+" pikkus on "+fail.length()+ " baiti. Viimati muudeti seda "+new Date(fail.lastModified()) ); } } }