Function cnfs::read_to_end
source ยท pub fn read_to_end(path: &Path) -> CNFSResult<Vec<u8>>
Expand description
Read the entire contents of a file into a slice.
This is a convenience function for using open and File::read_to_end with fewer imports.