Reading file by line, weird result

Dfr deflexor at yandex.ru
Fri Dec 27 02:24:15 PST 2013


On Friday, 27 December 2013 at 09:44:22 UTC, lomereiter wrote:
> The solution is to append `line.dup` instead of `line`.
>
> I guess this note in the documentation should be marked red:
>> Each front will not persist after popFront is called, so the 
>> caller must copy its contents (e.g. by calling to!string) if 
>> retention is needed.

Thank you, .dup helped.


More information about the Digitalmars-d-learn mailing list