https://issues.dlang.org/show_bug.cgi?id=14469
Issue ID: 14469 Summary: file.readText on Win64 doesn't work for files > 4GB. Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal Priority: P1 Component: Phobos Assignee: nob...@puremagic.com Reporter: artemal...@gmail.com In DMD 2.067 this function calls read(in char[], size_t) which in turns uses GetFileSize like this: auto size = trustedGetFileSize(h, null); One solution is to pass not null second parameter but it seems that it's even better to use GetFileSizeEx (us/library/windows/desktop/aa364957(v=vs.85).aspx). --