2012年1月5日
摘要: View Code 1 string filePath = @"d:\test.txt"; 2 3 if (filePath.Equals("")) { 4 5 MessageBox.Show("路径不能为空!","操作提示"); 6 7 return; 8 9 } 10 11 //先判断文件是否存在,不存在则提示 12 13 if (!System.IO.File.Exists(filePath)) { 14 15 MessageBox.Show("指定文件不存在!","操作提示&q 阅读全文
posted @ 2012-01-05 17:05 ECHO.- 阅读(366) 评论(0) 推荐(0)