In C#, what's the difference between \n and \r\n?

后端 未结 8 1272
礼貌的吻别
礼貌的吻别 2020-12-14 00:37

As per subject...

8条回答
  •  执念已碎
    2020-12-14 00:45

    "\n" is just a line feed (Unicode U+000A). This is typically the Unix line separator.

    "\r\n" is a carriage return (Unicode U+000D) followed by a line feed (Unicode U+000A). This is typically the Windows line separator.

提交回复
热议问题