File.get

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.

  1. void[] get(cstring path)
  2. void[] get(cstring path, void[] dst)
    class File
    static
    void[]
    get
    (,
    ref void[] dst
    )

Meta