Seek( ) & tell( ) function in files in python

 # seek() is used to provide the starting point from where the data print

# tell() function is used to about the position as far it reach while printing

f= open("23_writing_file.txt""r+")
f.seek(0)
print(f.readline().strip())
print(f.tell())

Comments