Create()

File::Create(const String&, int32_t, FileOptions) 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)

Arguments

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

Return Value

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

See Also