FileWriter fw = new FileWriter(myFile);
How is this not using the FileWriter class? When you create a FileWriter, it creates a new file - overwriting any previous file UNLESS you have specified...
Type: Posts; User: copeg
FileWriter fw = new FileWriter(myFile);
How is this not using the FileWriter class? When you create a FileWriter, it creates a new file - overwriting any previous file UNLESS you have specified...
Read the API for FileWriter...use the constructor that accepts an append boolean argument
FileWriter (Java Platform SE 6)