std.array.array broken?

bearophile bearophileHUGS at lycos.com
Sat Feb 1 14:59:11 PST 2014


deed:

> auto lines = File(filename).byLine.array;
> writeln(lines); // Crap
> ---

Beside the answers that others have already given you, another 
way to do that is to read the whole file (with read or readText) 
and then use splitlines on the string.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list