Created
January 20, 2024 13:24
-
-
Save ggzeng/79007a90c8a08d3d3a6cd1c7c6d907e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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