Java FileWriter with append mode

Pass true as a second argument to FileWriter to turn on “append” mode.

fout = new FileWriter("filename.txt", true);

FileWriter usage reference

Leave a Comment

error code: 523