If you wish to append to a file, use the FileWriter constructor that accepts a boolean with true for append
See: FileWriter