## File::CreateText method


Crea un archivo nuevo o abre el existente para escribir texto codificado en UTF-8.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| ruta | const String\& | La ruta del archivo a crear o abrir |

### ReturnValue

Un puntero compartido al objeto [StreamWriter](../../streamwriter/) asociado con el archivo especificado

## Ver también

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