## File::CreateText method


ينشئ ملفًا جديدًا أو يفتح ملفًا موجودًا لكتابة نص مشفر بـ UTF-8.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| المسار | const String\& | مسار الملف لإنشائه أو فتحه |

### ReturnValue

مؤشر مشترك إلى كائن [StreamWriter](../../streamwriter/) المرتبط بالملف المحدد

## انظر أيضًا

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