c# 判断指定文件是否存在

if (File.Exists(@"E:exists.txt"))
            {
                 MessageBox.Show("文件存在");
            }
             else
             {
                 MessageBox.Show("无此文件");
             }

  

原文地址:https://www.cnblogs.com/xuezhu/p/14247423.html