read_file

Macro read_file 

Source
macro_rules! read_file {
    ( $path:expr) => { ... };
}
Expand description

§read file return Result<Vec<u8>, Box<dyn std::error::Error>>

if let Ok(_r) = read_file!("./demo.txt") {
   println!("{:?}", _r);
}