Line by Line

PHOTO EMBED

Mon Mar 14 2022 04:39:55 GMT+0000 (Coordinated Universal Time)

Saved by @ghefley #python

with open("demo.txt") as file:
    print(file.readline())
content_copyCOPY

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