How to Skip some field/word in formattRead?

kdevel kdevel at vogtner.de
Sun Sep 17 18:44:52 UTC 2017


On Sunday, 17 September 2017 at 13:53:26 UTC, Ky-Anh Huynh wrote:
> Is it possible to read just the second word from an input 
> string and skip all others?
>
>     "one two three".formattedRead!("%s %s", _, saveme)

---
    import std.range;
    auto saveme = "one two three".split.array [2];
---



More information about the Digitalmars-d-learn mailing list