FileCreate Method (KernelTransaction, String, Int32, PathFormat) |
Creates or overwrites the specified file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntaxpublic static FileStream Create(
KernelTransaction transaction,
string path,
int bufferSize,
PathFormat pathFormat
)
Public Shared Function Create (
transaction As KernelTransaction,
path As String,
bufferSize As Integer,
pathFormat As PathFormat
) As FileStream
public:
static FileStream^ Create(
KernelTransaction^ transaction,
String^ path,
int bufferSize,
PathFormat pathFormat
)
static member Create :
transaction : KernelTransaction *
path : string *
bufferSize : int *
pathFormat : PathFormat -> FileStream
Parameters
- transaction
- Type: Alphaleonis.Win32.FilesystemKernelTransaction
The transaction. - path
- Type: SystemString
The name of the file. - bufferSize
- Type: SystemInt32
The number of bytes buffered for reads and writes to the file. - pathFormat
- Type: Alphaleonis.Win32.FilesystemPathFormat
Indicates the format of the path parameter(s).
Return Value
Type:
FileStream
A
FileStream with the specified buffer size that provides read/write access to the file specified in
path.
See Also