File f = new File("Resultados.txt"); FileWriter linea_tx = new FileWriter(f, true); pw = new PrintWriter(linea_tx); pw.println(texto); linea_tx.close();