tell(): Returns the current file position : File Tell « File « Python






tell(): Returns the current file position


f = open(r'c:\text\somefile.txt')
f.read(3)
f.read(2)
f.tell()

#the number returned from f.tell in this case was a long integer. 

           
       








Related examples in the same category