reset password
Author Message
kknaur
Posts: 540
Posted 11:43 Nov 04, 2016 |

FYI When writing to the file using PrintWriter, you my find that your text does not show up in the file.  If this is happening on your computer you may need to flush the print stream at the end.

Example:

PrintWriter pw = new PrintWriter(inputFileObject);

pw.println("Hello");
pw.println("World");

pw.flush(); <------------may need to add this at the end.