Output range for file?
Tofu Ninja via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jan 24 11:53:58 PST 2016
On Sunday, 24 January 2016 at 15:08:33 UTC, H. S. Teoh wrote:
> On Sun, Jan 24, 2016 at 12:38:22PM +0000, Tofu Ninja via
> Digitalmars-d-learn wrote:
>> I tried looking for this in phobos but cant seem to find it
>> which is really annoying. For my uses this works:
>
> What kind of data do you need to write to file? If it's
> textual data, use File.lockingTextWriter, which is an output
> range.
>
> If it's binary data, you'll probably have to roll your own;
> there's a Phobos PR right now that implements
> File.lockingBinaryWriter, but it's not quite ready for merging
> yet.
>
>
> T
I am writing out binary data, so I guess I will just keep using
what I am using.
More information about the Digitalmars-d-learn
mailing list