System::IO::File::WriteAllText method
File::WriteAllText method
Creates a new text file or overwrites the existing one and writes the content of the specified string to it using the specified encoding.
static void System::IO::File::WriteAllText(const String &path, const String &contents, const EncodingPtr &encoding=Text::Encoding::get_UTF8Unmarked())
Parameter | Type | Description |
---|---|---|
path | const String& | The file to create or overwrite |
contents | const String& | A string array |
encoding | const EncodingPtr& | The character encoding to use |
See Also
- Class String
- Typedef EncodingPtr
- Class File
- Namespace System::IO
- Library Aspose.PDF for C++