win32file module functions seem to fail very simple test case.
Neil Hodgson
nhodgson at eb2.net.au
Sun May 4 19:19:26 EDT 2003
Kossay Omary wrote:
> I am almost sure that this is a problem with my configuration or
> my use of the functions. I just do not know how to debug this.
> ...
> def openFile(filename):
> # returns a handle to the Windows file
> return win32file.CreateFile(filename.upper(),
win32file.GENERIC_READ, \
> 0, None, win32file.OPEN_EXISTING, 0,
None)
It would be a good idea to print out the value returned by the
CreateFile call. Possibly the call has failed.
Neil
More information about the Python-list
mailing list