Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

VFile.Open Method

Namespace: Rebex.IO
Assembly: Rebex.FileSystem.dll (version 7.0.9147)

Open(String, FileMode)

Method returns an instance of the VFileStream for a file identified by the path 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.

FileMode mode

One of the FileMode values which determines how to open a file.

Returns
Type Description
VFileStream

An instance of the VFileStream for a file identified by the path and required mode for a file identified by the path and required mode.

Open(String, FileMode, FileAccess)

Method returns an instance of the VFileStream for a file identified by the path, 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.

FileMode mode

One of the FileMode values which determines how to open a file.

FileAccess access

One of the FileAccess values which determines if the returned stream should be read-only stream, write-only stream or read/write stream.

Returns
Type Description
VFileStream

An instance of the VFileStream for a file identified by the path, required mode and requested access.

Open(String, FileMode, FileAccess, FileShare)

Method returns an instance of the VFileStream for a file identified by the path, 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.

FileMode mode

One of the FileMode values which determines how to open a file.

FileAccess access

One of the FileAccess values which determines if the returned stream should be read-only stream, write-only stream or read/write stream.

FileShare share

This argument is ignored. Concurrent access to the same virtual file is not supported and leads to undefined behavior.

Returns
Type Description
VFileStream

An instance of the VFileStream for a file identified by the path, required mode and requested access.

Remarks

Concurrent access to the same virtual file is not supported and leads to undefined behavior.

In This Article
  • Open(String, FileMode)
  • Open(String, FileMode, FileAccess)
  • Open(String, FileMode, FileAccess, FileShare)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies