File: OpenFile

OpenFile

Opens a file with a FileStream



 Public Function OpenFile(
	  ByRef Path As String,
	  ByVal Mode As FileMode,
	  Optional ByVal Access As FileAccess,
	  Optional ByVal Share As FileShare = FileShare. None ) As FileStream

Parameters

Path
[ByRef] String. The file to be opened.
Mode
[ByVal] FileMode. The mode in which to open the file.
Access
[ByVal] Optional. FileAccess. The type of access allowed by the FileStream.
Share
[ByVal] Optional. FileShare. The access allowed for other processes.  

Default: FileShare . None

Return Values

FileStream -  A FileStream object of the specified file.

See Also

Project CorLib Overview

Class File Overview