[Win32utils-devel] File.nopen alpha

win32utils-devel at rubyforge.org win32utils-devel at rubyforge.org
Thu Nov 11 13:51:04 EST 2004

Just a quick followup:
> I can also open a plain file and read the contents.  So far, 
> so good. But, when I try to write to the file, I get an 
> IOError claiming the file isn't opened for writing.  
> Shouldn't the WRITE_DATA flag have given me permission to 
> write?  I tried combinations of some other flags with no luck.

For a second I thought it was this line causing the problems:

fd = _open_osfhandle((long)h,O_RDONLY);

But, changing that to O_RDWR had no effect.


More information about the win32utils-devel mailing list