Canonical/Idiomatic in memory files

Walter Bright newshound2 at digitalmars.com
Tue May 28 14:42:09 PDT 2013


On 5/28/2013 8:04 AM, 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?

Part of the idea of using ranges is you can switch to a memory buffer instead of 
an actual file.



More information about the Digitalmars-d mailing list