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.
Printable View
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.
Hi
To open file in append mode , u can use this filewriter constructor as below..
public FileWriter(String fileName,
boolean append)
throws IOException