Java examples for File Path IO:Text File
Appending to a File
import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class Main { public void m() { try {/* w w w .j a va 2 s . co m*/ BufferedWriter out = new BufferedWriter(new FileWriter("filename", true)); out.write("aString"); out.close(); } catch (IOException e) { } } }