Canonical/Idiomatic in memory files

Martin Nowak code at dawg.eu
Tue May 28 10:51:34 PDT 2013


On 05/28/2013 05:04 PM, Russel Winder wrote:
> Hi,
>
> I think I am missing something very obvious…
>
> For unit tests I want a std.stdio.File object that is backed by an in
> memory string buffer rather than an actual file on disc, be it temporary
> or otherwise.  I think I am missing where this is documented in the
> documentation. Or is it actually not available?
>
> Thanks.
>
This is only available for std.stream 
http://dlang.org/phobos/std_stream.html#.MemoryStream.


More information about the Digitalmars-d mailing list