VFile.Open Method
Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)
Open(String, FileMode)
Method returns an instance of the VFilepath
and required mode
.
A caller must dispose the returned stream.
Declaration
public static VFileStream Open(string path, FileMode mode)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
File |
mode | One of the File |
Returns
Type | Description |
---|---|
VFile |
An instance of the VFile |
Open(String, FileMode, FileAccess)
Method returns an instance of the VFilepath
, required mode
and requested access
.
A caller must dispose the returned stream.
Declaration
public static VFileStream Open(string path, FileMode mode, FileAccess access)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
File |
mode | One of the File |
File |
access | One of the File |
Returns
Type | Description |
---|---|
VFile |
An instance of the VFile |
Open(String, FileMode, FileAccess, FileShare)
Method returns an instance of the VFilepath
, required mode
and requested access
.
A caller must dispose the returned stream.
Declaration
public static VFileStream Open(string path, FileMode mode, FileAccess access, FileShare share)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the file. |
File |
mode | One of the File |
File |
access | One of the File |
File |
share | This argument is ignored. Concurrent access to the same virtual file is not supported and leads to undefined behavior. |
Returns
Type | Description |
---|---|
VFile |
An instance of the VFile |
Remarks
Concurrent access to the same virtual file is not supported and leads to undefined behavior.