The above contents as processed by the for loop line by line:

The r parameter means it’s in read-only mode