1
Answer

Problem in saving file

Photo of Nishant Pawar

Nishant Pawar

14y
1.9k
1
Hi,

I am trying to save a text file for which i have written the following code in the button click event

 if (saveFileDialog1.ShowDialog() == DialogResult.OK)
            {
                MessageBox.Show(saveFileDialog1.FileName);
                
            }


the program is executing successfully but the file which i am trying to save is not saved successfully.
plz help to solve out my problem.

Thanks in advance.

Answers (1)