Look at the Scanner class for a quick and easy way to read lines from a text file.
Do a Search on the forum for many code samples.