Click to See Complete Forum and Search --> : How to open a file for append??


dong721
October 3rd, 2000, 09:12 PM
Hi!
I use FileWriter to open a file for writing,but the old data will always be replace when rerun the program...
How can I open a file for append?
Any reply will be appreciated.

gks
October 4th, 2000, 09:54 AM
Hi
To open file in append mode , u can use this filewriter constructor as below..


public FileWriter(String fileName,
boolean append)
throws IOException