طريقة System::IO::File::ReadAllText
File::ReadAllText method
تقرأ محتوى ملف النص المحدد إلى كائن String واحد باستخدام الترميز المحدد.
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
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++