## File::ReadAllText method


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

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| المسار | const String\& | مسار الملف للقراءة |
| الترميز | const EncodingPtr\& | ترميز الأحرف المستخدم |

### ReturnValue

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

## انظر أيضًا

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