Skip to content

Large Files reading properly with memory optimization line by line reading #1936

@halith-smh

Description

@halith-smh

1 File handle/File handle text/special symbol after word.py

#method (hybrid) - modified

with open("happy.txt", "r") as file:
    for word in file:
        print(word.strip(), "*", end="")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions