Libraries anvil io InputStream read

int read()
Reads a single byte from stream.
string read(int maxBytes)
Reads upto given amount of bytes from stream.
Reads bytes from stream.
Returns Byte read, or bytes read as string, or null if end of stream has been reached.
Throws IOError -  If an I/O error occurs.