## File::CreateText method


Crée un nouveau fichier ou ouvre un fichier existant pour écrire du texte encodé en UTF-8.

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


| Paramètre | Type | Description |
| --- | --- | --- |
| chemin | const String\& | Le chemin du fichier à créer ou ouvrir |

### ReturnValue

Un pointeur partagé vers l'objet [StreamWriter](../../streamwriter/) associé au fichier spécifié

## Voir aussi

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