You can use the Scanner class to read the text file:

http://www.javaprogrammingforums.com/java-code-snippets-tutorials/339-how-read-file-line-line-using-scanner-class.html

Scanner (Java...