Skip to content

Instantly share code, notes, and snippets.

@mynery
Created November 7, 2013 20:34
Show Gist options
  • Save mynery/7361421 to your computer and use it in GitHub Desktop.
Save mynery/7361421 to your computer and use it in GitHub Desktop.
use std::rt::io::buffered::BufferedReader;
fn main() {
let s: uint = from_str(std::os::args()[1]).unwrap();
let mut reader = BufferedReader::new(std::rt::io::stdin());
match reader.read_line() {
None => (),
Some(line) => {
println(line);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment