This Java tutorial describes how to read a String from a File one line at a time. ... The test.txt file is shown below.
www.avajava.com