private void btnTxt_Click(object sender, EventArgs e)
{
try
{
string TxtPath = Application.StartupPath + @"test.txt";//获取文本文件路径
System.Diagnostics.Process.Start(TxtPath);//打开文件
this.Close();
}
catch
{ }
}
{
try
{
string TxtPath = Application.StartupPath + @"test.txt";//获取文本文件路径
System.Diagnostics.Process.Start(TxtPath);//打开文件
this.Close();
}
catch
{ }
}