RichTextBox rtb = new RichTextBox(); rtb.Text = "Simple Text"; rtb.SaveFile(@"C:\text.txt", RichTextBoxStreamType.PlainText);