Carriage return and Line feed… Are both required in C#?

System.Environment.NewLine is the constant you are looking for – http://msdn.microsoft.com/en-us/library/system.environment.newline.aspx which will provide environment specific combination that most programs on given OS will consider “next line of text”. In practice most of the text tools treat all variations that include \n as “new line” and you can just use it in your text “foo\nbar”. Especially … Read more