Why does readln include the line terminator?
BCS
ao at pathlink.com
Tue Apr 14 09:18:49 PDT 2009
Reply to Georg,
> So the whole point is absurd. A reasonable default behavior for a file
> mongering program would be to output line terminators according to the
> operating system default. The case where one *wants* to preserve them,
> should be considered the exception.
>
Only if you considering wanting to maintain merge-ability/diff-ability as
the exception. Some, if not most, source control/diff/merge tools consider
changes in line endings as changes.
More information about the Digitalmars-d
mailing list