Type error - needs file handle not file name.