System::IO::File::WriteAllLines method
Contents
[
Hide
]File::WriteAllLines(const String&, const ArrayPtr<String>&, const EncodingPtr&) method
Creates a new text file or overwrites the existing one and writes all strings from the specified array of strings to it, each string on a new line, using the specified encoding.
static void System::IO::File::WriteAllLines(const String &path, const ArrayPtr<String> &contents, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
Parameter | Type | Description |
---|---|---|
path | const String& | The file to create or overwrite |
contents | const ArrayPtr<String>& | A string array |
encoding | const EncodingPtr& | The character encoding to use |
See Also
- Class String
- Typedef ArrayPtr
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.TeX for C++
File::WriteAllLines(const String&, const SharedPtr<Collections::Generic::IEnumerable<String>>&, const EncodingPtr&) method
Creates a new text file or overwrites the existing one and writes all strings from the specified enumerable collection of strings to it, each string on a new line, using the specified encoding.
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 | Description |
---|---|---|
path | const String& | The file to create or overwrite |
contents | const SharedPtr<Collections::Generic::IEnumerable<String>>& | An enumerable collection of strings |
encoding | const EncodingPtr& | The character encoding to use |
See Also
- Class String
- Typedef SharedPtr
- Class IEnumerable
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.TeX for C++