Seek(), tell() & More On Python Files

Code file as described in the video

f = open("harry.txt")
f.seek(11)
print(f.tell())
print(f.readline())
# print(f.tell())

print(f.readline())
# print(f.tell())
f.close()
  


Be the first person to comment!

Comments(0)