Mega Code Archive

 
Categories / Python Tutorial / File
 

Reading a File

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