Tempfiles in unittests

bearophile bearophileHUGS at lycos.com
Fri Mar 9 07:08:42 PST 2012


Magnus Lie Hetland:

> It seems that File has no method for reading the entire file 
> contents into a string, so I'd have to read and concatenate 
> lines or chunks or something?

There are std.file.read() and std.file.readText().

But I agree that std.stdio.File should have a readAll() method
:-) If you think this is a good idea, add it to Bugzilla.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list