System::IO::File::WriteAllLines-methode
inhoud
[
verbergen
]File::WriteAllLines(const String&, const ArrayPtr<String>&, const EncodingPtr&) method
Maakt een nieuw tekstbestand aan of overschrijft het bestaande en schrijft alle strings uit de opgegeven array van strings erin, elke string op een nieuwe regel, met de opgegeven codering.
static void System::IO::File::WriteAllLines(const String &path, const ArrayPtr<String> &contents, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
| Parameter | Type | Beschrijving |
|---|---|---|
| pad | const String& | Het bestand om te maken of te overschrijven |
| inhoud | const ArrayPtr<String>& | Een string-array |
| encoding | const EncodingPtr& | De te gebruiken tekenencodering |
Zie ook
- Class String
- Typedef ArrayPtr
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++
File::WriteAllLines(const String&, const SharedPtr<Collections::Generic::IEnumerable<String>>&, const EncodingPtr&) method
Maakt een nieuw tekstbestand aan of overschrijft het bestaande en schrijft alle strings uit de opgegeven enumerateerbare collectie van strings erin, elke string op een nieuwe regel, met de opgegeven codering.
static void System::IO::File::WriteAllLines(const String &path, const SharedPtr<Collections::Generic::IEnumerable<String>> &contents, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
| Parameter | Type | Beschrijving |
|---|---|---|
| pad | const String& | Het bestand om te maken of te overschrijven |
| inhoud | const SharedPtr<Collections::Generic::IEnumerable<String>>& | Een enumerabele collectie van tekenreeksen |
| encoding | const EncodingPtr& | De te gebruiken tekenencodering |
Zie ook
- Class String
- Typedef SharedPtr
- Class IEnumerable
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.Page for C++