Working with files over 2GB in D2
Jeremie Pelletier
jeremiep at gmail.com
Fri Oct 16 21:38:08 PDT 2009
Jeremie Pelletier wrote:
> dsimcha wrote:
>> Does anyone know how to work with huge (2GB+) files in D2? std.stream
>> has
>> overflow bugs (I haven't isolated them yet) and can't return their size
>> correctly, std.stdio.File throws a ConvOverflowError in seek() because
>> fseek()
>> apparently takes an int when it should take a long, and std.file only
>> supports
>> reading the whole file, which I can't do in 2GB address space.
>>
>> It appears none of the file I/O on Phobos has been tested on huge
>> files (until
>> now).
>
> What platform are you using? You should report your issue on bugzilla.
>
> I had similar issues on windows when using stdio's fseek and ftell, I
> had no problems using GetFilePointerEx, you could try that while it is
> fixed.
>
> Jeremie
I meant SetFilePointerEx :x
More information about the Digitalmars-d
mailing list