struct File. property size.
Stefan Koch via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu May 11 01:19:53 PDT 2017
On Thursday, 11 May 2017 at 07:24:00 UTC, AntonSotov wrote:
> import std.stdio;
>
> int main()
> {
> auto big = File("bigfile", "r+"); //bigfile size 20 GB
> writeln(big.size); // ERROR!
> return 0;
> }
>
> //////////////////////////////////////
> std.exception.ErrnoException at std\stdio.d(1029): Could not seek
> in file `bigfile` (Invalid argument)
>
> I can not work with a large file?
> 32 bit executable.
it seems you cannot :)
files bigger then 4G are still problematic on many platforms.
More information about the Digitalmars-d-learn
mailing list