read

Function read 

Source
pub fn read<P: AsRef<Path>>(
    path: P,
    data_dir: bool,
) -> Result<Vec<u8>, ApiError>
Expand description

Read the entire contents of a file into a bytes vector.

Works similarly to [std::fs::read].