Whitebeam Object Definition
Read 'n' octets from an open file or directory
Binary = Binary.read(octetsToRead)
The 'Binary.read' method takes 1 parameter:
|Name ||Type/Value ||Range/Length ||Description |
|octetsToRead||number|| ||Required. Number of octets to be read from the currently open file or directory.|
The 'Binary.read' method returns Binary:
|Type/Value ||Range/Length ||Description |
Attempt to read the specified number of bytes from an open file or directory associated with
this Binary object. If there is no open file an exception is thrown.
The effect of making this call is that the Binary object will contain the block that has
been read - discarding any previous contents. This means that obj.length will return the
number of octets actually read.
This method returns a reference to the Binary object
(loadtime : 27ms)