Method Create
Create(string)
Creates or overwrites a file in the specified path.
Stream Create(string path)
Parameters
path
stringThe path and name of the file to create.
Returns
Create(string, int, FileOptions)
Creates or overwrites a file in the specified path, specifying a buffer size and options that describe how to create or overwrite the file.
Stream Create(string path, int bufferSize, FileOptions options)
Parameters
path
stringThe path and name of the file to create.
bufferSize
intThe number of bytes buffered for reads and writes to the file.
options
FileOptionsOne of the FileOptions values that describes how to create or overwrite the file.
Returns
- Stream
A new file with the specified buffer size.
Create(string, int)
Creates or overwrites a file in the specified path, specifying a buffer size.
Stream Create(string path, int bufferSize)
Parameters
path
stringThe path and name of the file to create.
bufferSize
intThe number of bytes buffered for reads and writes to the file.
Returns
- Stream
A new file with the specified buffer size.