Post thumbnail of Tail a file in Python
20 October 2009
Continue reading Tail a file in Python

Tail a file in Python

Tail a file in Python

def tail( f, window=20 ):
f.seek( 0, 2 )
bytes= f.tell()
size= window
block= -1
while size > 0 and bytes+block*1024 > 0:

Powered by Wordpress   |   Lunated designed by ZenVerse