## FileInfo::CreateText method


Creates a file at the location specified by the path represented by the current object and opens it for writing text using UTF-8 encoding with no sharing.

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


### ReturnValue

A shared pointer to a [StreamWriter](../../streamwriter/) object associated with the created file

## See Also

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