Documentation for routine read

Documentation for routine read, assembled from the following types:

class IO::Handle

From IO::Handle

(IO::Handle) method read

Defined as:

method read(IO::Handle:D: Int(Cool:D$bytes --> Blob)

Binary reading; reads and returns up to $bytes bytes from the filehandle.

role IO::Socket

From IO::Socket

(IO::Socket) method read

method read(IO::Socket:D: Int(Cool$bytes)

Reads $bytes bytes from the socket and returns them in a Blob.

Fails if the socket is not connected.