OpenBinaryFile Method

 Object: FileManager
 Syntax: OpenBinaryFile ([in] Filename, [in] IOMode, [in] Create)
 Returns: A BinaryStream object
 Description: This method opens a file and returns a BinaryStream object so you can read and write the contents of the file.

You must specify the complete path of the file.

If Create is True, the file will be created. By default, it is False.

IOMode can be one of the following:
Constant Value Description
ForReading 1 To read the file. This is the default.
ForWriting 2 To write to the file.
ForAppending 8 To append to the file.

These constants can be found using the IIS 4 or later TypeLibrary feature, or by viewing the vbFileManagerInclude.asp file contained in the .\Samples\ directory.

 

 

Previous Page Next Page