Hacker News new | ask | show | jobs
by noncoml 814 days ago
I was talking about this:

    let mut file = File::open(path)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;