Attempting to read from a file opened only for writing on Windows (10, build 17134, 64-bit) after writing to the file does not throw an exception when read from, nor does it produce a valid result.
```
import std.stdio;
void main()
{
auto x = File("hi", "w");
x.write("Hello.");
ubyte[4096] buf;
auto slice = x.rawRead(buf);
assert(slice.length == 0); //Fails.
assert(slice == new ubyte[](slice.length)); //Also fails.
}
```
This only occurs when compiled with -m32. -m32mscoff and -m64 throw exceptions as expected.
Comment #1 by robert.schadek — 2024-12-01T16:33:57Z