Re: [Tutor] Writing over a line in a text file

2006-06-21 Thread Bob Gailer
kieran flanagan wrote: > Hi > > I have a question regarding writing text to a file. I am directing > output to a logfile. During one of the loops, I have a command that > will issue a message on how long it is waiting for by doing something > like this > > while something: > > pr

Re: [Tutor] Writing over a line in a text file

2006-06-21 Thread kieran flanagan
Thanks for both your replies Yes I think you may have misunderstood my orginal post Luke. The portion of code I gave will ensure each time this line is written it just writes over the previous line ( when printed to the console and  \r is not windows specific). As I said, I have tried numerous way

Re: [Tutor] Writing over a line in a text file

2006-06-21 Thread Luke Paireepinart
kieran flanagan wrote: > Hi > > I have a question regarding writing text to a file. I am directing > output to a logfile. During one of the loops, I have a command that > will issue a message on how long it is waiting for by doing something > like this > > while something: > > pr

Re: [Tutor] Writing over a line in a text file

2006-06-21 Thread Kent Johnson
kieran flanagan wrote: > Hi > > I have a question regarding writing text to a file. I am directing > output to a logfile. During one of the loops, I have a command that will > issue a message on how long it is waiting for by doing something like this > > while something: > > pr

[Tutor] Writing over a line in a text file

2006-06-21 Thread kieran flanagan
Hi I have a question regarding writing text to a file. I am directing output to a logfile. During one of the loops, I have a command that will issue a message on how long it is waiting for by doing something like this while something:     print "\rNow waiting %s seconds .. " % second