Function gstuff::slurp

source ·
pub fn slurp(path: &dyn AsRef<Path>) -> Vec<u8>
Expand description

Read contents of the file into a Vec.

Returns an empty Vec if the file is not present under the given path.