The xFileInput class adds a readString() method to the FileInput class. The readString() method generates a String from the contents of a text file. The EndsWithFilter class defines a filter for use with a FileDialog object.