ReadLong Method

Object List

Defined By:
BinaryFile

Description:

Reads a 4-byte integer from the currently open file and sets the passed in argument to the value of the long read.

Declaration:

Function ReadLong(arg As Long) As Long

Details:

If the file is not open for reading, an exception will be generated. The return value will be the number of bytes read, which will be 4 for a successful read. If the "SwapBytes" property is True, the bytes of the integer will be "swapped" before returning.

See Also:

SwapBytes property