Skip to content

Instantly share code, notes, and snippets.

@mraza007
Created December 27, 2018 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mraza007/149cf08ffd0356021c1574c920b8d511 to your computer and use it in GitHub Desktop.
Save mraza007/149cf08ffd0356021c1574c920b8d511 to your computer and use it in GitHub Desktop.
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