System::IO::File::WriteAllLines-methode

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())
ParameterTypeBeschrijving
padconst String&Het bestand om te maken of te overschrijven
inhoudconst ArrayPtr<String>&Een string-array
encodingconst EncodingPtr&De te gebruiken tekenencodering

Zie ook

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())
ParameterTypeBeschrijving
padconst String&Het bestand om te maken of te overschrijven
inhoudconst SharedPtr<Collections::Generic::IEnumerable<String>>&Een enumerabele collectie van tekenreeksen
encodingconst EncodingPtr&De te gebruiken tekenencodering

Zie ook