The problem is really that I once designed gets() to *not* return the newlines as a part of the returned string. If the newlines were returned, then it would be easy see what is going on at all times:
"a\nb" would return "a\n" and then "b"
/ Fredrik (Naranek) Hubinette (Real Build Master)
Previous text:
2002-12-31 00:04: Subject: stdin->line_iterator
It's still a DWIM that makes it impossible to iterate over a file and rebuild it (possibly with modifications) in the state it was to begin with.
/ Peter Bortas