Skip to content

Instantly share code, notes, and snippets.

@andreafrancia
Created February 16, 2014 22:09
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 andreafrancia/9041329 to your computer and use it in GitHub Desktop.
Save andreafrancia/9041329 to your computer and use it in GitHub Desktop.
#[cfg(not(test))]
fn main() {
use std::io::BufferedReader;
use std::io::stdin;
let mut stdin = BufferedReader::new(stdin());
match stdin.read_line() {
Ok(line) => println!("line:{}", line),
Err(io_error) => println!("problem reading line: {}", io_error)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment