Christopher Koppler wrote: #- You could do the following: #- #- >>> f = file('filename.txt', 'r') #- >>> numberoflines = 10 #- >>> for line in f.readlines()[-numberoflines:]: #- ... print line #- #- which prints the last 10 lines of the file. But if the file has 2GB? This method doesn't reads *all* the file? . Facundo