In C#, what's the difference between \n and \r\n?
In C#, what's the difference between \n and \r\n?
\r inserts U+000DCARRIAGE RETURN\n inserts U+000ALINE FEEDYou can insert one, or the other, or both:
\r\n inserts U+000DU+000A\n\r inserts U+000AU+000DIf you intention is to indicate "the end of the line", different platforms, and different technologies, expect you to insert different things:
\r\n)\r\n)\n)\n)\r)\x85)