On Tue, 16 Sep 2014 14:37:05 +0000, Jay wrote: > all the functions/methods i've come across so far deal with either > streams or just file names (like std.file.read) and there doesn't seem > to be a way to wrap a std.stdio.File in a stream (or is there?). i need > a function that takes a std.stdio.File and returns a string or byte > array.
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.