请问:c#中点击按钮弹出txt文本文件怎么做?谢谢 点击按钮,直接弹出txt文本文件,不需要在另一个窗体显示,这样有办法吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你要弹出什么呢?文件内容?还是记事本程序呢?StreamReader hc = new StreamReader(@"C:\database.txt"); string ss = hc.ReadToEnd(); MessageBox.Show(ss); private void button2_Click(object sender, EventArgs e){ System.Diagnostics.Process.Start("notepad.exe", "c:\\a.txt");} 1\ System.Diagnostics.Process.Start("notepad.exe", @"路径+文件名"); 2\ MessageBox.Show(System.IO.File.ReadAllText(@"路径+文件名")); System.Diagnostics.Process.Start("notepad", txtFile); Process.Start("c:\\cc.txt");直接这样就可以了 请教paypal返回页面问题 <<C#高级编程>>哪个版本好 求助:不用递归算法遍历指定路径下所有目录及文件? 关于表合并 电子表单英文是什么?XForm英文全称是什么? 请教有关列表视图与数据库问题 兄弟们,问个傻比都不能回答的问题.about windows form 关于窗体传值问题 cssclass imagebutton 请教用 C# 做一个FTP客户端软件 C#中水晶报表的问题(急!!!!!!!!!!!!!!!!!) c#資源共享
StreamReader hc = new StreamReader(@"C:\database.txt");
string ss = hc.ReadToEnd();
MessageBox.Show(ss);
{
System.Diagnostics.Process.Start("notepad.exe", "c:\\a.txt");
}
2\ MessageBox.Show(System.IO.File.ReadAllText(@"路径+文件名"));
直接这样就可以了