Re: readText for large files on Windows.

2015-04-19 Thread Kenny via Digitalmars-d-learn
Thanks. The bug is created. https://issues.dlang.org/show_bug.cgi?id=14469

Re: readText for large files on Windows.

2015-04-19 Thread Rikki Cattermole via Digitalmars-d-learn
On 20/04/2015 7:06 a.m., Kenny wrote: This function works fine for large text files like 100Mb or 1Gb but failed when I tried to read 6Gb file. This happens on Windows x64. The possible reason that it uses read(in char[], size_t) function and on windows it calls GetFileSize. This function return

readText for large files on Windows.

2015-04-19 Thread Kenny via Digitalmars-d-learn
This function works fine for large text files like 100Mb or 1Gb but failed when I tried to read 6Gb file. This happens on Windows x64. The possible reason that it uses read(in char[], size_t) function and on windows it calls GetFileSize. This function returns file size as 32 bit value. If you