[Tutor] wheel.py

Kirk Bailey idiot1@netzero.net
Sat, 28 Sep 2002 23:00:56 -0400


Actually, not really, as if it's written right there are no such errors, and to
do what you sugegest, it still  has to rewrite the file, and if there are
errors, it will write errors. But I DID have the idea of looping the wheel,
writing it out again to the file FROM THE NEXT ITEM FIRST TO THE ONE JUST
PRINTED OUT AS LAST, dispensing with the counter altogether. It actually would
ROTATE the data through the physical file's sequence one spoke at a time.

Andrei Kulakov wrote:
>

[snip unimportant part]

> Wouldn't it be easier to keep a copy of the main file, grab one line out
> of eat each invocation and delete it, and when no lines are left, copy the
> main file again into its place? That way you don't have to keep track of
> error-prone counters at all...
> 
> - andrei
-- 

end

Respectfully,
             Kirk D Bailey


+---------------------"Thou Art Free." -Eris-----------------------+
| http://www.howlermonkey.net  mailto:highprimate@howlermonkey.net |
| KILL spam dead!      http://www.scambusters.org/stopspam/#Pledge |
| http://www.tinylist.org  +--------+   mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking----------------------+
                           +--------+
-------------------------------------------
Introducing NetZero Long Distance
Unlimited Long Distance only $29.95/ month!
Sign Up Today! www.netzerolongdistance.com