Re: how to remove the blank lines?

2006-12-08 Thread Peter Otten
boyeestudio wrote: Please keep the discourse on c.l.py/python-list. > Thanks a lot! > I have modified it,and it works well now! > but the KeyboardInterrupt on which I have a little problem. > When I type CTRL+C,it show me an I/O error. > it seems that even as I click the CTRL+C,the try block is t

Re: how to remove the blank lines?

2006-12-08 Thread Peter Otten
boyeestudio wrote: > The following program have the same function as the linux's command:tail > -f logfile.log > But it print a lot of blank lines while showing on the stdout. > How to fix this problem and let it go ahead always > showing the end line as the log file's increasing. > > #tail.py: >

how to remove the blank lines?

2006-12-08 Thread boyeestudio
The following program have the same function as the linux's command:tail -f logfile.log But it print a lot of blank lines while showing on the stdout. How to fix this problem and let it go ahead always showing the end line as the log file's increasing. #tail.py: import os import sys class Tail: