[Python-talk] {Python-talk] Running off the end of a file during read?
Bruce Labitt
bruce.labitt at myfairpoint.net
Sun Jun 14 14:53:57 EDT 2009
Kent Johnson wrote:
> On Sun, Jun 14, 2009 at 12:24 PM, Bruce
> Labitt<bruce.labitt at myfairpoint.net> wrote:
>
>> Does f.read(n) error if the function hits eof? If not how can I determine
>> when I hit eof?
>>
>
> IIUC read(n) returns <n bytes if it hits EOF.
>
> Kent
>
>
>
Thanks Kent. That is an easy enough test.
-Bruce
More information about the Python-talk
mailing list