## FileInfo::OpenWrite method


Opens a file represented by the current object for writing only, in 'OpenOrCreate' mode with no sharing.

```cpp
FileStreamPtr System::IO::FileInfo::OpenWrite()
```


### ReturnValue

A [FileStream](../../filestream/) object associated with the opened file

## See Also

* Typedef [FileStreamPtr](../../../system/filestreamptr/)
* Class [FileInfo](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
