Java FAQ's
Java FAQ's
The readLine() method returns null when it has reached the end of a file.