System::IO::File::Exists 方法

File::Exists method

确定指定路径是否引用了已存在的文件。

static bool System::IO::File::Exists(const String &path)
参数类型描述
路径const String&要测试的路径

ReturnValue

如果 path 引用的是已有文件,则为 true;否则为 false

另见