fn read_to_string(path: &Path) -> Result<Vec<u8>, Error> {
        use std::fs::File;
        use std::io::Read;

        let mut file_content = Vec::new();
        let mut file = File::open(path)?;
        file.read_to_end(&mut file_content).expect("Unable to read");
        Ok(file_content)
    }
// helper fn to read file to string
helper fn to read file to string
helper fn to read file to string
fn read_to_string(path: &Path) -> Result<Vec<u8>, Error> {
        use std::fs::File;
        use std::io::Read;
        let mut file_content = Vec::new();
        let mut file = File::open(path)?;
        file.read_to_end(&mut file_content).expect("Unable to read");
        Ok(file_content)
    }
fn read_to_string ( path : & Path ) -> Result < Vec < u8 > , Error > { use std :: fs :: File ; use std :: io :: Read ; let mut file_content = Vec :: new ( ) ; let mut file = File :: open ( path ) ? ; file . read_to_end ( & mut file_content ) . expect ( " " ) ; Ok ( file_content ) }
helper fn to read file to string
helper fn to read file to string
path
&Path
path
&Path