How to streamingly read text file and display whenever updated text

galeomaga at gmail.com galeomaga at gmail.com
Sat Oct 5 03:38:51 EDT 2013



#!/usr/bin/python
import time
f = open('/home/martin/Downloads/a.txt')
while 1:
	for line in f:
		print line;
	time.sleep(1);



More information about the Python-list mailing list