您的位置首页百科知识

关于Directory.Exists(path)读取错误

关于Directory.Exists(path)读取错误

的有关信息介绍如下:

关于Directory.Exists(path)读取错误

Directory.Exists 是检查目录是否存在的你的 1.txt 是个文件啊,当然不对了用 File.Exists