## File::ReadAllText method


تقرأ محتوى ملف النص المحدد إلى كائن [String](../../../system/string/) واحد باستخدام الترميز المحدد.

```cpp
static String System::IO::File::ReadAllText(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8())
```


| معامل | نوع | الوصف |
| --- | --- | --- |
| مسار | const String\& | مسار الملف الذي سيتم قراءته |
| encoding | const EncodingPtr\& | ترميز الأحرف الذي سيُستخدم |

### ReturnValue

سلسلة تحتوي على محتوى الملف المحدد

## انظر أيضًا

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