try
{
StreamWriter sw = new StreamWriter(txtFilename.Text);
sw.Write(txtContent.Text);
sw.Close();
}
catch (IOException iex)
{
MessageBox.Show(iex.Message, this.Text);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, this.Text);
}
No comments:
Post a Comment