access the lines of the file in sequence