crear archivo txt
Crea una instancia de la clase java.io.PrintStream, de la forma:
PrintStream ficherotxt = new PrintStream(new FileOutputStream("NOMBRE_DEL_FICHERO.TXT"));
Despues con el metodo print(String) y println(String) escribes en el fichero.
Por ultimo, cuando acabes cierra el fichero con ficherotxt.close
PrintStream ficherotxt = new PrintStream(new FileOutputStream("NOMBRE_DEL_FICHERO.TXT"));
Despues con el metodo print(String) y println(String) escribes en el fichero.
Por ultimo, cuando acabes cierra el fichero con ficherotxt.close