## File::Exists method


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

```cpp
static bool System::IO::File::Exists(const String &path)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要测试的路径 |

### ReturnValue

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

## 另见

* Class [String](../../../system/string/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
