data$ = ReadBytes(id[, len])
len
bytes from the file specified by id
. If the
len
argument is omitted, ReadBytes()
will read all bytes from the
current file cursor position until the file end. ReadBytes()
will
advance the file cursor position by the number of bytes read.
This function is useful for reading binary data from a file. Since
Hollywood strings can store binary data as well as text, ReadBytes()
can just copy all the bytes it has read from the file in a Hollywood
string and return it.