Difference between “\n” and Environment.NewLine

Depends on the platform. On Windows it is actually “\r\n”.

From MSDN:

A string containing “\r\n” for
non-Unix platforms, or a string
containing “\n” for Unix platforms.

Leave a Comment