Attempting to read from a file opened only for writing on Windows (10, build 17134, 64-bit) results in at least one ErrnoException carrying a "No error" message.
Example:
```
import std.stdio;
void main()
{
auto x = File("hi", "w");
ubyte[100] buf;
x.rawRead(buf);
}
```
results in one "No error" ErrnoException when compiled with -m64 and -m32mscoff, and two when compiled with -m32. The second one is thrown upon closing the file.
Comment #1 by robert.schadek — 2024-12-01T16:33:56Z