https://issues.dlang.org/show_bug.cgi?id=14505
Issue ID: 14505
Summary: File doesn't rewind read pointer for a+ mode on
Windows
Product: D
Version: D2
Hardware: All
OS: Windows
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
cat > bug.d << CODE
void main()
{
import std.file, std.stdio;
std.file.write("test.txt", "content");
auto f = File("test.txt", "a+");
assert(f.tell == 0);
}
CODE
dmd -run bug
----
Happens for DMC's and MSVC's runtime.
--