Basic application in J2SE, to open and alter a text file