System::IO::File::Create method

File::Create method

Creates a new file (or overwrites existing) and opens it for reading and writing access using the specified buffer size and options.

static FileStreamPtr System::IO::File::Create(const String &path, int32_t bufferSize=DefaultBufferSize, FileOptions options=FileOptions::None)
ParameterTypeDescription
pathconst String&The path of the file to create or overwrite
bufferSizeint32_tThe number of bytes buffered when reading from and writing to the file
optionsFileOptionsSpecifies how to create or overwrite the file

ReturnValue

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

See Also