file rawRead and rawWrite in chunks example

Jay Norwood via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Aug 8 18:27:47 PDT 2015


On Sunday, 9 August 2015 at 00:50:16 UTC, Ali Çehreli wrote:
>
>     {
>         auto f = File(fn,"wb");
>
>         iota(10.5, 20_000_010.5, 1.0)
>             .chunks(1000000)
>             .each!(a => f.rawWrite(a.array));
>     }
>
> Ali

Thanks. There are many examples of numeric to string data output 
in the docs, saving byLine.   Those are on the order of 30x 
slower than this rawWrite example.  This will be more useful to 
many people.




More information about the Digitalmars-d-learn mailing list