Ernesto: >fileHandle = open(filePath, 'r').read(); ^^^^^^^^ Remove this:
open() returns the filehandle, open().read() returns the data read from the filehandle. -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list
Ernesto: >fileHandle = open(filePath, 'r').read(); ^^^^^^^^ Remove this:
open() returns the filehandle, open().read() returns the data read from the filehandle. -- René Pijlman -- http://mail.python.org/mailman/listinfo/python-list