Split once and then iterate over the lines
This is considerably faster (20%-40%) than reading line by line.