Skip to content

Instantly share code, notes, and snippets.

@tilpner
Created March 8, 2015 18:25
Show Gist options
  • Save tilpner/c2b84ce9f2f366805d01 to your computer and use it in GitHub Desktop.
Save tilpner/c2b84ce9f2f366805d01 to your computer and use it in GitHub Desktop.
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