日期:2014-05-17  浏览次数:20659 次

检查文件是否存在,大家都是用什么方法?
System.IO.File.Exists(path)

这个方法我表示如果文件名中出现中文状态下的小括号()或大括号{}等...,则返回false.

------解决方案--------------------
中午字符也没问题啊
System.IO.File.Exists("d:\\setuplog(a).txt") 是true
------解决方案--------------------