Reading a File : tell « File « Python Tutorial






f = open("test.txt", "rb")      
f.tell()                                  
f.seek(-128, 2)                                
print f.tell()                                      
tagData = f.read(128)                           
print tagData 
print f.tell()








12.15.tell
12.15.1.Reading a File