1 #!python 2 import time 3 file = open('foo.txt') 4 line = file.readline() 5 while line: 6 »···print line 7 »···»···time.sleep(1) 8 »···»···line = file.readline()