[Issue 18017] [External] [DMC] File.size() uses a 32-bit signed integer for size internally (gives wrong results for files over ≈2.1 GB)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 28 18:09:38 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=18017

--- Comment #4 from krzaq <issues.dlang.org.kq.ajsx at krzaq.cc> ---
std.file.getSize works correctly in my case.

The thing is, I read this big file (using struct File and then byChunk) and I
am getting all the data correctly - only the size returned by File.size isn't
correct - that's why I suggested using raw winapi for this (at least on win32),
but std.file.getSize might work as well.

--


More information about the Digitalmars-d-bugs mailing list