WeCodeAcademy

Read a file line by line

Use with open() so the file is closed for you.

Examplepython
Open in editor »

More Python recipes