## FileStream::Flush() method


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

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

## 另见

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


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

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


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| flush_to_disk | bool | 如果为 true，则刷新所有中间缓冲区；否则为 false。 |

## 另见

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