As per subject...
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Use
Environment.NewLine
and don't care.They are just
\r\n and \n
are variants.\r\n
is used in windows\n
is used in mac and linuxThere are a few characters which can indicate a new line. The usual ones are these two:
Different Operating Systems handle newlines in a different way. Here is a short list of the most common ones:
They expect a newline to be the combination of two characters, namely '\r\n' (or 13 followed by 10).
Unix uses a single '\n' to indicate a new line.
Macs use a single
'\r'
.Taken from Here