pub fn read_file(path: &Path) -> Result<Vec<u8>>
Expand description

Reads a file.

Examples

use std::path::Path;

use rust_code_analysis::read_file;

let path = Path::new("Cargo.toml");
read_file(&path).unwrap();