Function rust_code_analysis::read_file_with_eol [−][src]
pub fn read_file_with_eol(path: &Path) -> Result<Option<Vec<u8>>>
Reads a file and adds an EOL
at its end.
Examples
use std::path::Path; use rust_code_analysis::read_file_with_eol; let path = Path::new("Cargo.toml"); read_file_with_eol(&path).unwrap();