## File::CreateText method


UTF-8 エンコードされたテキストを書き込むために、新規または既存のファイルを作成または開きます。

```cpp
static StreamWriterPtr System::IO::File::CreateText(const String &path)
```


| パラメーター | 型 | 説明 |
| --- | --- | --- |
| パス | const String\& | 作成または開くファイルのパス |

### ReturnValue

指定されたファイルに関連付けられた [StreamWriter](../../streamwriter/) オブジェクトへの共有ポインタ

## 参照

* Typedef [StreamWriterPtr](../../../system/streamwriterptr/)
* Class [String](../../../system/string/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.Page for C++](../../../)
