Brass Core Plugins

freadw/freadi/fread

Reads data from a file and advances the pointer.

Syntax

freadw(handle)
freadi(handle)
fread(handle)

Remarks

fread reads an unsigned byte, and returns -1 if you've tried to read past the end of the stream.

freadw and freadi read signed 16-bit and 32-bit integers respectively.