File.Read Method

Reads binary data from a file.

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

Parameters

int[] 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.