The values of a file are stored in one or more lines.
To continuously read the lines from the file, one at a time,
you can use a while loop.
In the while loop, continuously use the Scanner object
that can read a line of value(s).
In the while statement, to check whether
the Scanner object has not gotten to the last line,
you can check the status of its hasNext() method.
As long as this method returns true,
the Scanner reader has not gotten to the end of the file.
Once the Scanner object has arrived to the end,
this method would return false.
