How in the world is this "faster" as stated?
By streaming the data, you can do both at the same time. (The OS will already fetch the next line from the disk while you are still processing the previous one.)
Other than that, it's more memory efficient.
It can also be faster if you're searching for something in the file, because you can short-circuit reading the rest of the file when you find it.