How to append text to an existing file in Java
How can I add a string to the end of a .txt file?
As advised by Joachim Sauer, instead of using
if you want to specify the encoding of the file.
English term to look for: "append"
You need to perform the following steps:
Read about the FileOutputStream class.