John Wood said:
fyi the framework provides Environment.NewLine constant for the \n\r escape
sequence.
Other way round - "\r\n". However, that's not what it's *defined* to be
- it's defined to be the default line separate for the platform. That
means that on Mono it's (I would imagine) "\r\n" for Windows and "\n"
for Linux, for example.
In my view, it should only be used when writing text files to be read
on that platform - if you're trying to conform to a protocol which
specifies which line separator to use, you should use that exact string
rather than Environment.NewLine.