Re: [Tutor] Newbie simple question

2005-02-25 Thread Kent Johnson
Valone, Toren W. wrote: I need to know how to read the next line while in the "for line in" loop. Readline does not read the next line (I watched it in debug) I think it has something to do with the for line loop but I have not found any documentation in the doc's or tutor for any functions for lin

Re: [Tutor] Newbie simple question

2005-02-25 Thread Jay Loden
You want readlines() not readline() and it should work something like this: remailfile = open("remail2.txt", r) remails = remailfile.readlines() for line in remails: #do something -Jay On Friday 25 February 2005 05:14 pm, Valone, Toren W. wrote: > I need to know how to read the next line whil

[Tutor] Newbie simple question

2005-02-25 Thread Valone, Toren W.
I need to know how to read the next line while in the "for line in" loop. Readline does not read the next line (I watched it in debug) I think it has something to do with the for line loop but I have not found any documentation in the doc's or tutor for any functions for line.. Thanks, please forg