FileCreate Method (String, Int32, FileOptions, PathFormat) |
Creates or overwrites the specified file, specifying a buffer size and a
FileOptions value that describes how to create or overwrite the file.
Namespace:
Alphaleonis.Win32.Filesystem
Assembly:
AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static FileStream Create(
string path,
int bufferSize,
FileOptions options,
PathFormat pathFormat
)
Public Shared Function Create (
path As String,
bufferSize As Integer,
options As FileOptions,
pathFormat As PathFormat
) As FileStream
public:
static FileStream^ Create(
String^ path,
int bufferSize,
FileOptions options,
PathFormat pathFormat
)
static member Create :
path : string *
bufferSize : int *
options : FileOptions *
pathFormat : PathFormat -> FileStream
Parameters
- path
- Type: SystemString
The name of the file. - bufferSize
- Type: SystemInt32
The number of bytes buffered for reads and writes to the file.
- options
- Type: System.IOFileOptions
One of the FileOptions values that describes how to create or overwrite the
file.
- pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
FileStreamA new file with the specified buffer size.
See Also