WriteIntegers Method

Object List

Defined By:
BinaryFile

Description:

Writes an array of "numItems" 2-byte integers to the currently open file.

Declaration:

Function WriteIntegers(arg() As Integer, ByVal numItems As Long) As Long

Details:

If the file is not open for writing, an exception will be generated. The return value will be the number of bytes written, which will be 2*numItems for a successful write. If the "SwapBytes" property is True, the bytes of each integer will be "swapped" before writing.

See Also:

SwapBytes property