Skip to main content

read_bytes

Function read_bytes 

Source
pub fn read_bytes(path: &str) -> OpticResult<Vec<u8>>
Expand description

Read a file as raw bytes.

ยงErrors

Returns OpticErrorKind::File if the file is missing, unreadable, or permission is denied.