Skip to content

Code error on page "10.7. Recipe for Reading and Processing a File" #236

@paccattam

Description

@paccattam

The following code snippet given in the end of the text @ the link given below should have mentioned fire opbject reference instead of "lines"
https://fopp.umsi.education/runestone/static/fopp/Files/FilesRecipe.html

fname = "yourfile.txt"
with open(fname, 'r') as fileref: # step 1
for lin in lines: # step 2
## some code that reference the variable lin
#some other code not relying on fileref # step 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions