demo_file_readline3.py:
f = open("demofile.txt", "r") for x in f: print(x)
➜ begtut>python demo_file_readline3.py
Hello! Welcome to demofile.txt
This file is for testing purposes.
Good Luck!