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