txt: ## slurp-rest.md
  slurp-rest
  
  Combined from primary sources listed below.
  
  # [In IO::Handle](#___top "go to top of document")[§](#(IO::Handle)_method_slurp-rest "direct link")
  
  See primary documentation
  [in context](/type/IO/Handle#method_slurp-rest)
  for **method slurp-rest**.
  
  ```raku
  multi method slurp-rest(IO::Handle:D: :$bin! --> Buf)
  multi method slurp-rest(IO::Handle:D: :$enc --> Str)
  ```
  
  **DEPRECATION NOTICE:** this method is deprecated in the `6.d` version. Do not use it for new code, use [`.slurp` method](/routine/slurp) instead.
  
  Returns 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`](/type/Buf) will be returned; otherwise the return will be a [`Str`](/type/Str) with the optional encoding `:enc`.
  