Instantly share code, notes, and snippets.

Embed
What would you like to do?
use std::env;
use std::fs;
fn main() {
// --snip--
println!("In file {}", "Hello.txt");
let contents = fs::read_to_string("Hello.txt")
.expect("Something went wrong reading the file");
println!("File Read Completed\n{}", contents);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment