Libraries anvil io File readBinary

int readBinary(binary bin)
int readBinary(binary bin, int offset)
int readBinary(binary bin, int offset, int length)
Reads from file to given binary.
Parameters bin -  The binary into which the data is read
offset -  The start offset of the data
length -  The maximum number of bytes to read
Returns the amount of bytes read, or -1 if there is no more data because the end of file has been reached.
Throws IOError -  If an I/O error occurs