System::IO::File::CreateText method

File::CreateText method

Creates a new or opens existing file for writing UTF-8 encoded text.

static StreamWriterPtr System::IO::File::CreateText(const String &path)
ParameterTypeDescription
pathconst String&The path of the file to create or open

ReturnValue

A shared pointer to the StreamWriter object associated with the specified file

See Also