System::IO::File::ReadAllLines طريقة
File::ReadAllLines method
يقرأ محتوى ملف النص المحدد سطرًا بسطر إلى مصفوفة من السلاسل باستخدام الترميز الأحرف المحدد.
static ArrayPtr<String> System::IO::File::ReadAllLines(const String &path, const EncodingPtr &encoding=Text::Encoding::get_UTF8())
| Parameter | Type | الوصف |
|---|---|---|
| المسار | const String& | مسار الملف للقراءة |
| الترميز | const EncodingPtr& | ترميز الأحرف المستخدم |
ReturnValue
مصفوفة سلاسل، كل عنصر فيها يمثل سطرًا واحدًا من الملف المحدد
انظر أيضًا
- Typedef ArrayPtr
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++