File.Read Method

Reads binary data from a file.

int Read(any[] items, int num_items, int size)

Parameters

any[] items

Array to store each item read.

int num_items

Number of items to read into the array.

int size

Size of each element, in bytes, to be read. Valid sizes are 1, 2, or 4.

Return Value

Number of elements read, or -1 on error.