does std.file.slurp work with string data field?

bearophile bearophileHUGS at lycos.com
Thu Dec 26 18:05:41 PST 2013


Big Tummy:

>     auto arr = "data.txt".slurp!(string, int)("%s, %s");

Use (I also have added a space after the second %s because slurp 
is buggy with Windows-style newlines):

auto arr = slurp!(string, int)("data.txt", "%s, %s ");

Bye,
bearophile


More information about the Digitalmars-d mailing list