read-lines function

Read from a text file line by line