How can you append text to an existing file instead of overwriting it?
Use FileOutputStream with the append flag set to true.
Use BufferedWriter with the append flag set to true.
Use PrintWriter with the append method.
Use FileWriter with the append flag set to true.