read file problem

Rene Pijlman reply.in.the.newsgroup at my.address.is.invalid
Mon Feb 6 11:10:56 EST 2006


Ernesto:
>fileHandle = open(filePath, 'r').read();
                                 ^^^^^^^^
                    Remove this:

open() returns the filehandle, open().read() returns the data read from
the filehandle.

-- 
René Pijlman



More information about the Python-list mailing list