Hello,
The .Text property of the RichTextBox is no good for you.
Instead use .Lines
File.AppendAllLines(@"c:\temp\test1.txt", richTextBox1.Lines);
The is because the .Text property uses \n to indicate a new line and in a Text file it is not enough.
Try this to debug:
File.WriteAllText(@"c:\temp\test2.txt", richTextBox1.Text);
File.AppendAllLines(@"c:\temp\test1.txt", richTextBox1.Lines);
File.WriteAllText(@"c:\temp\test3.txt", richTextBox1.Text.Replace("\n",Environment.NewLine));
Valery.