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