import java.io.*; class Program { public static void main(String args[]) throws IOException { FileWriter iro = new FileWriter("adat.txt", true); iro.write("joska:titok:gazdasag:Szolnok\n"); iro.flush(); iro.close(); System.out.println("Kiírva"); } }