demo_ref_file_readline3.py:
f = open("demofile.txt", "r") print(f.readline(5))
➜ begtut>python demo_file_readline3.py
Hello