## FileStream::Flush() method


清除此流的缓冲区并将所有缓冲的数据写入底层文件。

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

## 另见

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


清除此流的缓冲区并将所有缓冲数据写入底层文件。 是方法 [Flush()](./) 的同义词。

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| flush_to_disk | bool | True 表示刷新所有中间缓冲区，否则为 false。 |

## 另见

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