pub fn read_file(path: &Path) -> std::io::Result<String> {
    let mut file = File::open(path)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    Ok(contents)
}
/// Read an entire file into a string.
Read an entire file into a string.
Read an entire file into a string .
pub fn read_file(path: &Path) -> std::io::Result<String> {
    let mut file = File::open(path)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    Ok(contents)
}
pub fn read_file ( path : & Path ) -> std :: io :: Result < String > { let mut file = File :: open ( path ) ? ; let mut contents = String :: new ( ) ; file . read_to_string ( & mut contents ) ? ; Ok ( contents ) }
Read an entire file into a string.
Read an entire file into a string .
path
&Path
path
&Path