Skip to content

Instantly share code, notes, and snippets.

@stepancheg
Created November 2, 2013 20:20
Show Gist options
  • Save stepancheg/7283053 to your computer and use it in GitHub Desktop.
Save stepancheg/7283053 to your computer and use it in GitHub Desktop.
use std::rt::io::stdin;
use std::rt::io::Reader;
fn main() {
let mut r = stdin();
loop {
let b = r.read_byte();
if b.is_none() {
break;
}
println!("{}", b.unwrap());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment