Created
June 8, 2017 06:41
-
-
Save Eternity-Yarr/b09c5190542989ce88925192624089bd 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; | |
use std::io::BufRead; | |
use std::fs::File; | |
fn main() { | |
let file = File::open("main.rs").unwrap(); | |
let reader = BufReader::new(file); | |
for line in reader.lines() | |
.filter_map(|x| x.ok()) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment