September 16, 2014 Re: Is there a function that reads the entire contents of a std.stdio.File? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Justin Whear | On Tuesday, 16 September 2014 at 18:42:42 UTC, Justin Whear wrote:
> The short answer is no. I usually use something like this:
>
> // Lazy
> auto stream = stdin.byChunk(4096).joiner();
>
> You can make it eager by tacking a `.array` on the end. Functions used
> are from std.stdio, std.algorithm, std.array.
thanks. that's exactly what i need.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply