byLine(n)?
Cym13 via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Jun 11 01:42:58 PDT 2017
On Sunday, 11 June 2017 at 08:33:16 UTC, Cym13 wrote:
> On Sunday, 11 June 2017 at 05:36:08 UTC, helxi wrote:
>> [...]
>
> Ok, if I read you right you are writing to stdin and want first
> to print the first args[1] lines, then to do other things with
> the other lines of stdin.
>
> [...]
Meh... I just noticed my first and second propositions are
essentially the same, the main difference is that the range
stdin.ByLineCopy is stored so you don't create a new one when
reading from stdin again. This is what causes the loss of a line.
More information about the Digitalmars-d-learn
mailing list