⬅︎ Back to To readline() or readlines()
You can't use the for ... in ... construct with readline() the same was as you can readlines(). It would read only one line and iterate it character by character.
Comment
You can't use the for ... in ... construct with readline() the same was as you can readlines(). It would read only one line and iterate it character by character.