Created
December 27, 2018 20:15
-
-
Save mraza007/149cf08ffd0356021c1574c920b8d511 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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