getContents package:text
Read all user input on
stdin as a single string.
Read all user input on stdin as a single string.
Lazily read all user input on
stdin as a single string.
Read the remaining contents of a
Handle as a string. The
Handle is closed once the contents have been read, or if an
exception is thrown.
Internally, this function reads a chunk at a time from the lower-level
buffering abstraction, and concatenates the chunks into a single
string once the entire file has been read.
As a result, it requires approximately twice as much memory as its
result to construct its result. For files more than a half of
available RAM in size, this may result in memory exhaustion.
Read the remaining contents of a
Handle as a string.
Lazily read the remaining contents of a
Handle. The
Handle will be closed after the read completes, or on error.