Click or drag to resize

FileCreate Method (String, Int32, FileOptions, FileSecurity)

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
public static FileStream Create(
	string path,
	int bufferSize,
	FileOptions options,
	FileSecurity fileSecurity


Type: SystemString
The name of the file.
Type: SystemInt32
The number of bytes buffered for reads and writes to the file.
Type: System.IOFileOptions
One of the FileOptions values that describes how to create or overwrite the file.
Type: System.Security.AccessControlFileSecurity
One of the FileSecurity values that determines the access control and audit security for the file.

Return Value

Type: FileStream
A new file with the specified buffer size, file options, and file security.
See Also