title: Saving richtextbox data containg newline, save it to a file and open it using notepad does not show newline in c#
body: <p>I am using windows form in c#. I have some text in <code>richtextbox</code>. I want to save it in text file. In richtextbox, I used both <code>Environment.NewLine</code> and <code>"\r\n"</code> for newline. If I try to copy <code>richtextbox</code> data to a notepad manually, it is working fine. But if I try to save it using 
  <code>File.WriteAllText(path, string.Concat(richtextbox.Text.ToString()));</code>
  or <code>sw.WriteLine(OutputBox.Text.ToString());</code> [here sw is for <code>StreamWriter</code>] and open it using notepad of windows, it is not showing newlines. But if I try to open it using notepad++, it is working. Could anyone please help me? Thanks in advance</p>