GET_BYTE

Syntax byte = GET_BYTE(#channel)
Location DJToolkit 1.16

Reads one character from the file attached to the channel number given and returns it as a value between 0 and 255. This is equivalent to CODE(INKEY$(#channel)).

BEWARE, PUT_BYTE can put negative values to file, for example -1 is put as 255, GET_BYTE will return 255 instead of -1. Any negative numbers returned are always error codes.

EXAMPLE

c = GET_BYTE(#3)

CROSS-REFERENCE

GET_FLOAT, GET_LONG, GET_STRING, GET_WORD.