Convenience function to return the content of a file.
This overload takes a slice to a reusable buffer which is
expanded as needed.
Content size is determined via the file-system, per
File.length, although that may be misleading for some
*nix systems. An alternative is to use File.load which
loads content until an Eof is encountered.
Convenience function to return the content of a file.
This overload takes a slice to a reusable buffer which is expanded as needed. Content size is determined via the file-system, per File.length, although that may be misleading for some *nix systems. An alternative is to use File.load which loads content until an Eof is encountered.