Mega Code Archive

 
Categories / Python / File
 

Tell()

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.