read

Reads a chunk of data from the stream.

Reads and returns the specified number of characters, or fewer if the end of stream is reached. Throws a SUPStreamNotOpenException if the stream is not open for reading.

Syntax

- (SUPNullableBinary)read :(SUPLong)length;

Parameters

Returns

read returns a chunk of string data read from the stream, or a null value if the end of the stream has been reached.

Examples