Simple looping question...
Vincent A. Primavera
vincent_a_primavera at netzero.net
Mon Apr 2 11:19:22 EDT 2001
Hello,
Problem solved... I appreciate the help!
Thank you,
Vincent A. Primavera
On Monday 02 April 2001 11:03, Vincent A. Primavera wrote:
> Hello,
> In a piece of code similar to this I am trying to read all the lines from
> a file but no more. How can I set the "range" of this loop to stop when it
> reaches the end of the file?
>
> for i in range(???):
> a = fil1.readline()
> print a
>
> Thank You,
> Vincent A. Primavera
More information about the Python-list
mailing list