I have trouble with saving file from Richtextbox to text file.
My richtextbox looks like this;
ABC ... SDE ... KLO ...
Af
I know this question is pretty old but here is an alternate code for people who might run into this problem in the future
File.WriteAllLines(saveFileDialog1.FileName, richTextBox1.Lines);