Testing for EOF ?

Pete Moscatt pgmoscatt at optushome.com.au
Mon Apr 4 07:21:09 EDT 2005


I am reasonably new to python and am trying to read several lines of text
from an open file.

Typically in other languages I used to use code like:

while not EOF()
  read_text_in
  ...


How is this achieved with python ?

Regards
Pete




More information about the Python-list mailing list