Created
March 8, 2015 18:25
-
-
Save tilpner/c2b84ce9f2f366805d01 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::io::{ BufReader, BufReadExt }; | |
use std::fs; | |
fn main() { | |
let file = BufReader::new(fs::File::open("./Cargo.toml").unwrap()); | |
for line in file.lines() { | |
println!("{}", line.unwrap()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment