I have no good answer to that. To me the natural behaviour would be the same as for foreach(foo/"\n", string line).
/ Peter Bortas
Previous text:
2002-12-30 14:07: Subject: stdin->line_iterator
So why does line_iterator do that? It could at least avoid doing that and do the exact same thing as gets and ngets unless you give it some sort of flag.
/ Mirar