openReadBin

HC Communication File opening openReadBin
openRead openWrite

openReadBin filename


command. Opens the named file for binary reading. The read position is initially at the beginning of the file.

Example:

to loadpalette file
	local [mypal]
	mypal=array 2^8
	openReadBin file
	setReader file
	while [not eof?]
	[	mypal.repcount=(rgb
			(rawASCII readChar)/2^8
			(rawASCII readChar)/2^8
			(rawASCII readChar)/2^8)
	]
	close file
	setReader []
	output mypal
end
loadpalette "topograf.pal

Example:

Reference:

openRead openWrite