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