fn read_file_lines(filename: &String) -> Result<Vec<String>, io::Error> {
    let mut vec = vec![];
    let file = File::open(filename)?;
    for line in io::BufReader::new(file).lines() {
        let line_str = line?;
        vec.push(line_str);
    }
    Ok(vec)
}
/// Reads the file at the supplied path, and returns a vector of strings.
Reads the file at the supplied path, and returns a vector of strings.
Reads the file at the supplied path and returns a vector of strings .
fn read_file_lines(filename: &String) -> Result<Vec<String>, io::Error> {
    let mut vec = vec![];
    let file = File::open(filename)?;
    for line in io::BufReader::new(file).lines() {
        let line_str = line?;
        vec.push(line_str);
    }
    Ok(vec)
}
fn read_file_lines ( filename : & String ) -> Result < Vec < String > , io :: Error > { let mut vec = vec ! [ ] ; let file = File :: open ( filename ) ? ; for line in io :: BufReader :: new ( file ) . lines ( ) { let line_str = line ? ; vec . push ( line_str ) ; } Ok ( vec ) }
Reads the file at the supplied path, and returns a vector of strings.
Reads the file at the supplied path and returns a vector of strings .
filename
&String
filename
&String