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