Environment.NewLine instead of \n in C# #122
-
|
Hi, Why do you use Environment.NewLine property instead of \n in your code?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hello Shervan, thanks for asking! The new line character is different based on the platform. See this Wikipedia article - newline.
|
Beta Was this translation helpful? Give feedback.
Hello Shervan, thanks for asking!
The new line character is different based on the platform. See this Wikipedia article - newline.
Environment.NewLinereturns\r\nwith Windows, and\nwith Linux.