import java.io.*; class Program4 { public static void main(String args[]) throws IOException { FileWriter firo = new FileWriter("adat2.txt", true); PrintWriter iro = new PrintWriter(firo); iro.println("Valai"); firo.close(); System.out.println("Kiírva"); } }