Read all the lines of a text file into a list with some simple processing per line.