The ApacheSW Commons IOS library has a very useful tool for allowing you to get a List of the lines of a File, the readLines() method of the FileUtils class. The ReadListOfLinesFromFile class demonstrates this.