Basic application in J2SE editing a text file