Why is "while" ticking me off???
William Park
parkw at better.net
Thu Oct 5 22:13:19 EDT 2000
More information about the Python-list mailing list
Thu Oct 5 22:13:19 EDT 2000
- Previous message (by thread): Why is "while" ticking me off???
- Next message (by thread): Why is "while" ticking me off???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): Why is "while" ticking me off???
- Next message (by thread): Why is "while" ticking me off???
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list