Formatted read of tokens?

bearophile via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jun 17 01:16:53 PDT 2014


Jerry:

> If I do
>
> f.readf("%s %s", &l, &i);
>
> it fails if the whitespace is a tab.

In you can use byLine, followed by a split, and then assignment 
of the pieces, followed by to!int where necessary.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list