ReadByte()

Syntax

Number.b = ReadByte(#File)
Description
Read a byte (1 byte) from a file.

Parameters

#File The file to read from.

Return value

Returns the read byte or zero if there was an error.

Remarks

For an example of how read from a file see the ReadFile() function - with ReadByte() only a byte value is read, instead of a complete line (string).

See Also

WriteByte(), OpenFile(), ReadFile()

Supported OS

All

<- ReadAsciiCharacter() - File Index - ReadCharacter() ->