Why is "while" ticking me off???

William Park parkw at better.net
Thu Oct 5 22:13:19 EDT 2000


On Thu, Oct 05, 2000 at 07:58:25PM -0400, Thomas Gagne wrote:
> I have a file that I want to read line-by-line, and stop reading when I run
> out of lines.  My first desire was to attempt:

Try something like,
    for line in f.readlines():
	...
Also, read online documentation on file objects and methods.

---William Park, Open Geometry Consulting




More information about the Python-list mailing list