Get system specific line break in .net
-
11-09-2019 - |
Question
Is there a way to get the current systems line break character(s) in the .net framework?
Solution
Environment.NewLine
will give you the newline string defined for the current platform and implementation of the .NET Framework.
OTHER TIPS
System.Environment.NewLine
Environment.NewLine MSDN
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow