klyn.io.InputStream.read
method

    public read() as String throws IOException

Description

Reads the remaining data as text.

Implementations may decode bytes with a one-byte-per-character mapping. For file-based text workflows, prefer `TextReader` / `FileReader`.

Returns

Text read from the stream.

Throws

- IOException if the resource is closed, inaccessible, not a valid file, or the underlying I/O operation fails.