August 26, 2011 Re: Reading by character and by line from stdin | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | 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! |
Copyright © 1999-2021 by the D Language Foundation