class Program2 { public static main(String args[]) throw java.io.IOException { java.io.FileWriter fwriter = new java.io.FileWriter("adat.txt", true); java.io.BufferedWriter writer = new java.io.BufferedWriter(fwriter) for(i=0; i<5; i++) { writer.write("1234"); writer.write("8235"); } writer.close(); fwriter.close(); System.println("Writed"); } }