public read() as String throws IOException
Reads the remaining file contents as strict UTF-8, from the current byte position to end-of-file. Use readBytes for undecoded binary contents.
Decoded text, or an empty string when already at end-of-file.
text = stream.read()