demo_ref_file_readline3.py:
f = open("demofile.txt", "r") print(f.readline(5))
C:\Users\My Name>python demo_file_readline3.py
Hello