CreateText()

File::CreateText(const String&) method

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

static StreamWriterPtr System::IO::File::CreateText(const String &path)

Arguments

ParameterTypeDescription
pathconst String&The path of the file to create or open

Return Value

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

See Also