How to streamingly read text file and display whenever updated text

James Harris james.harris.1 at gmail.com
Sat Oct 5 04:06:32 EDT 2013


<galeomaga at gmail.com> wrote in message 
news:04ee91f9-1cbf-4364-bca3-da25aa4db45f at googlegroups.com...
>
>
> #!/usr/bin/python
> import time
> f = open('/home/martin/Downloads/a.txt')

Looks like you are on Unix so you can do this from the shell

  tail -F /home/martin/Downloads/a.txt

James





More information about the Python-list mailing list