## File::OpenWrite method


Opens the specified file for writing only, in 'OpenOrCreate' mode with no sharing.

```cpp
static FileStreamPtr System::IO::File::OpenWrite(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.PUB for C++](../../../)
