## FileInfo::CreateText method


現在のオブジェクトが表すパスで指定された場所にファイルを作成し、UTF-8 エンコーディングでテキストを書き込むために開きます。共有は行いません。

```cpp
StreamWriterPtr System::IO::FileInfo::CreateText()
```


### ReturnValue

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

## 参照

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