## File::AppendAllText method


使用指定的编码，将指定字符串追加到指定文件。

```cpp
static void System::IO::File::AppendAllText(const String &path, const String &contents, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 路径 | const String\& | 要追加字符串的文件路径 |
| 内容 | const String\& | 写入文件的字符串 |
| encoding | const EncodingPtr\& | 要使用的字符编码 |

## 另见

* Class [String](../../../system/string/)
* Typedef [EncodingPtr](../../../system/encodingptr/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.Font for C++](../../../)
