## File::CreateText method


Crea un nuovo file o apre quello esistente per scrivere testo codificato in UTF-8.

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


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| percorso | const String\& | Il percorso del file da creare o aprire |

### ReturnValue

Un puntatore condiviso all'oggetto [StreamWriter](../../streamwriter/) associato al file specificato

## Vedi anche

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