System::IO::File::AppendAllLines methode
inhoud
[
verbergen
]File::AppendAllLines method
Voegt strings uit de opgegeven collectie strings toe aan het opgegeven bestand met de opgegeven codering door elke string in een nieuwe regel te schrijven. Als het opgegeven bestand niet bestaat, wordt het aangemaakt. Het bestand wordt gesloten na het schrijven van alle strings.
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 | Beschrijving |
|---|---|---|
| pad | const String& | Het pad van het bestand waaraan de strings worden toegevoegd |
| inhoud | const SharedPtr<Collections::Generic::IEnumerable<String>>& | De strings die naar het bestand moeten worden geschreven |
| 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++