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

File::Exists method

确定指定路径是否引用了已有文件。

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

ReturnValue

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

另见