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

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

Read complete at path into memory.

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