Is there a function that reads the entire contents of a std.stdio.File?
Jay via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 16 12:01:33 PDT 2014
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.
More information about the Digitalmars-d-learn
mailing list