Text File Line by Line

PHOTO EMBED

Mon Mar 14 2022 04:40:51 GMT+0000 (Coordinated Universal Time)

Saved by @ghefley #python

with open("demo.txt") as file:
    for item in file:
        print(item)
content_copyCOPY

https://www.freecodecamp.org/news/python-open-file-how-to-read-a-text-file-line-by-line/