Create Method

Object List

Defined By:
BinaryFile

Description:

Creates and opens the file indicated by FileName.

Declaration:

Sub Create(ByVal MayExist As Long)

Details:

Creates the file if it does not exist. If the call to Create succeeds, the IsOpen property is True, and the file handle is accessible via the Handle property. If the file exists before the call is made and MayExist is True, the contents of the file are discarded. If the file exists and MayExist is False, Phoenix throws an exception.