Please Edit your post and wrap your code with
<YOUR CODE HERE> to get highlighting

Unless the file has only one line, then the program reads the file one line at a time using the readLine()...