1 / 8
INTRO

One at a Time

.read() hands you the whole file in one lump of text.

That's fine for three names. It's less fine for a list of ten thousand customers, and it's no use at all when what you want is to do something to each line — count them, check them, pick out the ones that matter.

For that you need them one at a time.