native

fread

Syntax

native fread(file, &any:data, mode);

Description

Reads a single binary data from a file.

Parameters

file Handle to the file
data Variable to store item read
mode Size of each element, in bytes, to be read
See BLOCK_* constants

Return

Number of elements read