Is there anyway I can write to an already existing file using Filewriter
For example when the user clicks a submit button:
FileWriter writer = new Fi
Yeah. Use the constructor like this:
FileWriter writer = new FileWriter("myfile.csv",true);
FileWriter
public FileWriter(File file,
boolean append)
throws IOException
Constructs a FileWriter object given a File object. If the second argument is true, then bytes will be written to the end of the file rather than the beginning.