How to save a opened file in richtext box
<p>txt file in my richtextbox and want to save the orginal file rather than save a new file (SaveAs). here is my code for saving the file</p>

<pre><code>private void SaveMyFile_Click(object sender, EventArgs e)
    {

        SaveFileDialog saveFile1 = new SaveFileDialog();
        saveFile1.DefaultExt = "*.rtf";
        saveFile1.Filter = "RTF Files|*.rtf";          
        if (saveFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK &amp;&amp;
        saveFile1.FileName.Length &gt; 0)
        {
          richTextBox1.SaveFile(saveFile1.FileName, RichTextBoxStreamType.PlainText);
        }

    }
</code></pre>

<p>any help pleaseeee</p>
