## File::CreateText method


Membuat file baru atau membuka file yang ada untuk menulis teks berenkoding UTF-8.

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


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| path | const String\& | Jalur file yang akan dibuat atau dibuka |

### ReturnValue

Pointer bersama ke objek [StreamWriter](../../streamwriter/) yang terkait dengan file yang ditentukan

## Lihat Juga

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