Read a text file using readLine()