On 12/24/10, Andrej Mitrovic <[email protected]> wrote: > Use stdin.readf:
And don't forget to catch those exceptions!
import std.exception, std.stdio, std.conv;
void main(string[] args)
{
try
{
for (double x; stdin.readf(" %s ", &x) == 1;)
{
writeln(x); // or was it stat.postprocess? :)
}
}
catch (ConvException)
{
}
}
That should do it.
