How Do I save a wpf rich text box with text in it?
I have managed to load a file into a rich text box in wpf (thank-you for your help), now how can I go about saving it?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Mahesh ChandRank #1 · 393.3K reputationPosted Dec 12, 2009, 7:43 AM EST
TextRange range;
FileStream fStream;
range = new TextRange(RTB.Document.ContentStart, RTB.Document.ContentEnd);
fStream = new FileStream(@"C:\junk\test.txt", FileMode.Create);
range.Save(fStream, DataFormats.Text);
fStream.Close();
Here are some more functions with RichTextBox: