Reading by character and by line from stdin

Andrej Mitrovic andrej.mitrovich at gmail.com
Fri Aug 26 15:59:04 PDT 2011


to!(T[]) is awesome.

I've ported this little C thingy:
sscanf(oneline, "%f %f %f %f %f", &x, &y, &z, &u, &v);

to this:
to!(float[])(line.split);

Can't get easier than that!


More information about the Digitalmars-d-learn mailing list