Click to See Complete Forum and Search --> : JAVA


renu
October 5th, 1999, 03:00 PM
I would like to know how to continue to write to a file without erasing the old contents. I just want to append to new data the data that already exists in the file.

poochi
October 5th, 1999, 03:08 PM
Use FileWriter class.



public FileWriter(String fileName,
boolean append) throws IOException






if the boolean is true , then the file will be opend in append mode.