Open Method

Object List

Defined By:
BinaryFile

Description:

Opens or creates the file specified by the FileName property, with both read and write access.

Declaration:

Sub Open(ByVal MustExist As Long)

Details:

Opens the file indicated by FileName for reading and writing. If the file does not exist, and MustExist is False, the file is created empty. If the file does not exist and MustExist is True, or if the file exists but can't be opened for reading AND writing, an exception is thrown. If the call to Open succeeds, the IsOpen property is True and the file handle is accessible via the Handle property.