A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/081959.html below:

Simple looping question...

Simple looping question... Simple looping question...Vincent A. Primavera vincent_a_primavera at netzero.net
Mon Apr 2 11:03:41 EDT 2001
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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4