demo_ref_file_readline.py:
f = open("demofile.txt", "r") print(f.readline())
➜ begtut>python demo_file_readline.py
Hello! Welcome to demofile.txt