Documentation for method slurp-rest

Documentation for method slurp-rest, assembled from the following types:

class IO::Handle

From IO::Handle

(IO::Handle) method slurp-rest

multi method slurp-rest(IO::Handle:D: :$bin! --> Buf)
multi method slurp-rest(IO::Handle:D: :$enc --> Str)

DEPRECATION NOTICE: this method will be deprecated in 6.d language. Do not use it for new code. Use .slurp method method instead.

Return the remaining content of the file from the current file position (which may have been set by previous reads or by seek.) If the adverb :bin is provided a Buf will be returned, otherwise the return will be a Str with the optional encoding :enc.