## FileStream::Flush() method


Clears this stream's buffers and writes all buffered data to the underlying file.

```cpp
void System::IO::FileStream::Flush() override
```

## See Also

* Class [FileStream](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
## FileStream::Flush(bool) method


Clears this stream's buffers and writes all buffered data to the underlying file. Synonym for method [Flush()](./).

```cpp
void System::IO::FileStream::Flush(bool flush_to_disk)
```


| Parameter | Type | Description |
| --- | --- | --- |
| flush_to_disk | bool | True to flush all intermediate buffers, otherwise - false. |

## See Also

* Class [FileStream](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
