slurp

Function slurp 

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

Read contents of the file into a Vec.
Similar to std::fs::read.

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