usestd::{fs::File,io::{self, Read},path::Path,};/// read a system file into a string
pubfnread_file<P:AsRef<Path>>(path: P)->io::Result<String>{letmut file =File::open(path.as_ref())?;letmut buf =String::new();
file.read_to_string(&mut buf)?;Ok(buf)}