Wednesday, August 12, 2009

How to append a text to a file?

try {
BufferedWriter out = new BufferedWriter(new FileWriter("filename", true));
out.write("aString");
out.close();
} catch (IOException e) {
}

No comments:

Post a Comment