System::IO::File::AppendAllLines methode

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())
ParameterTypeBeschrijving
padconst String&Het pad van het bestand waaraan de strings worden toegevoegd
inhoudconst SharedPtr<Collections::Generic::IEnumerable<String>>&De strings die naar het bestand moeten worden geschreven
encodingconst EncodingPtr&De te gebruiken tekenencodering

Zie ook