Skip to content

Instantly share code, notes, and snippets.

@nandub
Created May 30, 2009 03:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nandub/120350 to your computer and use it in GitHub Desktop.
Save nandub/120350 to your computer and use it in GitHub Desktop.
BufferedWriter out = null;
try {
out = new BufferedWriter(new FileWriter(”filename”, true));
out.write(”aString”);
} catch (IOException e) {
// error processing code
} finally {
if (out != null) {
out.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment