how do you save from a savefile dialog in C#?
here is the code I am currently using to open a file using the openfiledialog ` private void openToolStripMenuItem_Click_1(object sender, System.EventArgs e) { //opens the openfiledialog and gives the title. openFileDialog1.Title = "openfile"; //only opens files from the computer that are text or richtext. openFileDialog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; //gets input from the openfiledialog. if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { //loads the file and puts the content in the richtextbox. System.IO.StreamReader sr = new System.IO