Writing very large files 50+ GB

Regan Heath regan at netmail.co.nz
Fri Jul 27 02:39:18 PDT 2012


On Fri, 27 Jul 2012 02:50:56 +0100, wmunger <wmunger at gmail.com> wrote:

> I need to write to a file that is 50 to 250GB on all three major  
> operating systems.
>
> I tried to use the c function pwrite64.  But it is not available on the  
> Mac.
>
> I have seen where some have used the iostream in C++ but this does not  
> seem to work on the Mac.
>
> Is there any way to write in D very large files.  After all I would  
> rather write in D than wrap C or C++ code.

Have you looked for open, lseek(64) and write?

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list