Thursday, August 18, 2011

Output file formatting in Java?

Every time you open the file (the PrintWriter), it deletes the old file and makes a new one. The best option would be to create the PrintWriter *once*. Declare it outside the loop.

No comments:

Post a Comment