Function casper_node::utils::read_file[][src]

pub fn read_file<P: AsRef<Path>>(filename: P) -> Result<Vec<u8>, ReadFileError>
Expand description

Read complete at path into memory.

Wraps fs::read, but preserves the filename for better error printing.