Ernesto: >fileHandle = open(filePath, 'r').read(); ^^^^^^^^ Remove this: open() returns the filehandle, open().read() returns the data read from the filehandle. -- René Pijlman