home
NOTE: Under Construction - I'm in the middle of upgrading my site and lots of stuff is kinda broken. Please forgive the mess.

Read A File Line By Line In Python

October 2021

You can just use the file handle with a for loop.

Code
for file in source_files:
    with open(file) as _file:
        for line if _file:
            print(line)
═══ § ═══