## File::OpenRead method


Opens the specified file for reading only, in 'Open' mode with shared access for reading.

```cpp
static FileStreamPtr System::IO::File::OpenRead(const String &path)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The path of the file to open |

### ReturnValue

A [FileStream](../../filestream/) object associated with the opened file

## See Also

* Typedef [FileStreamPtr](../../../system/filestreamptr/)
* Class [String](../../../system/string/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
