demo_ref_file_tell2.py:
f = open("demofile.txt", "r") print(f.readline()) print(f.tell())
C:\Users\My Name>python demo_file_tell2.py
Hello! Welcome to demofile.txt
32