C#中判断文件夹中存在某个txt文本时间:2021-02-14 19:53:57 strFileName="D:\\strarray.txt"; if (File.Exists(strFileName))//判断文件是否存在 { }