On 05/10/2013 08:54, galeom...@gmail.com wrote:

if __name__ == '__main__':
     logfile = open("/home/martin/Downloads/a.txt","r");
     while True:
         line = logfile.readline();
         if not line:
                print line;
         time.sleep(1);

this also failed


Usually please state your OS and Python versions, what you expected to happen, what actually happened and the full traceback if applicable. In this case I'd hazard a guess that as you're trying to print something that evaluates to false you're not likely to see much. You can also remove the semicolons as they're simply not needed.

--
Roses are red,
Violets are blue,
Most poems rhyme,
But this one doesn't.

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to