testing true condition
mwh21 at cam.ac.uk
Wed Apr 19 12:05:33 CEST 2000
Gregoire Welraeds <helpdesk at perceval.be> writes:
> I know that I can't do something like the following:
> >>> while (line= f.readline()):
> as i could in C. Is there any replacement tricks ?
> I know that I could use something with f.read() but i don't want to have
> the file completly loaded in memory
Tried the standard library module fileinput?
112. Computer Science is embarrassed by the computer.
-- Alan Perlis, http://www.cs.yale.edu/~perlis-alan/quotes.html
More information about the Python-list