## File::OpenRead method


以 'Open' 模式打开指定文件，仅供读取，并共享读取访问。

```cpp
static FileStreamPtr System::IO::File::OpenRead(const String &path)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要打开的文件路径 |

### ReturnValue

一个与已打开文件关联的 [FileStream](../../filestream/) 对象

## 另见

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