Function read_to_bytes
Source pub fn read_to_bytes<P: AsRef<Path>>(path: P) -> CoreResult<Vec<u8>>
Expand description
Reads an entire file into a byte vector
§Arguments
§Returns
Ok(Vec<u8>)
if the file was read successfully
Err(CoreError::IoError)
if the file could not be read
§Errors
Returns CoreError::IoError
if the file could not be read.