ReadSingles Method

Object List

Defined By:
BinaryFile

Description:

Reads into an array "numItems" 4-byte floating point numbers from the currently open file.

Declaration:

Function ReadSingles(arg() As Single, ByVal numItems 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*numItems for a successful read. If the "SwapBytes" property is True, the bytes of each number read will be "swapped" before returning.

See Also:

SwapBytes property