
-----------------------------------
Justin_
Thu Apr 27, 2006 8:32 pm

PrintWriter deletes contents of file
-----------------------------------

PrintWriter output = new PrintWriter(new FileWriter(inputFile));


How do i make it open the file for writing without deleting the contents of the file?

-----------------------------------
Justin_
Thu Apr 27, 2006 8:36 pm


-----------------------------------
Please whatever you do, don't suggest that I copy the contents of the file in an array first.

-----------------------------------
wtd
Thu Apr 27, 2006 9:46 pm


-----------------------------------
You're trying to "append" to the file.  The FileWriter class makes this quite easy to do.
