On Tuesday, 21 April 2015 at 01:46:53 UTC, Adam D. Ruppe wrote:
I think this should work:

import std.stdio;

void main() {
        string token;
        while(readf("%s ", &token))
                writeln(token);
}


Have you tried that? What is wrong with it if you have?

It'll just leave some trailing whitespace, which I don't want. And somehow doing token = token.stip STILL leaves that whitespace somehow...

Reply via email to