title: Saving contents of rich textbox to file, perserving multilines
body: <p>Ok so I'm trying to make a simple text editing program and I got the files to save, but the problem is that all line breaks are removed in the saved file</p>
  
  <p>ie  </p>
  
  <p>text as it appears in the text editor</p>
  
  <blockquote>
    <p>123<br>
    456<br>
    789  </p>
  </blockquote>
  
  <p>text as it appears in the saved file</p>
  
  <blockquote>
    <p>123456789  </p>
  </blockquote>
  
  <p>code I'm using<br>
  <code>string filename = saveFileDialog1.FileName; File.WriteAllText(filename,richTextBox1.Text);</code><br>
  and<br>
  <code>string filename = saveFileDialog1.FileName;<br>
  File.AppendAllText(filename, richTextBox1.Text);</code>  </p>
  
  <p>These both produce the same result ie no linebreaks</p>
  
  <p>Any ideas on what I'm doing wrong?</p>