The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Read A File Line By Line In Python

TODO: Pull subtitle into page object

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

code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Read A File Line By Line In Python

-- p

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

-- code/
-- python3

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

-- /code


-- categories
-- Python

-- metadata
-- date: 2021-10-30 21:16:30
-- id: 20eobxfu
-- status: published
-- type: post
-- SCRUBBED_NEO: false
-- site: aws