private void button1_Click(object sender, EventArgs e)
{
openFileDialog1.Filter = "|*.xml";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string path = openFileDialog1.FileName;
string path2 = Application.StartupPath +@"\123.txt";
System.IO.File.Copy(path, path2, true);
}
}
{
openFileDialog1.Filter = "|*.xml";
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
string path = openFileDialog1.FileName;
string path2 = Application.StartupPath +@"\123.txt";
System.IO.File.Copy(path, path2, true);
}
}