I have a simple application that yet would trash a text file (it\'s just practice) I\'m only 3 days with Java yet. Problem is there are no errors until you run the program then
Only close your FileWriter stream once you are completely done using it.
Also, the write method for FileWriter does not include a method for only a String parameter. That might be the garbage you are getting when reading the file.