Skip to content

Instantly share code, notes, and snippets.

@bstrie
Created October 29, 2012 18:07
Show Gist options
  • Save bstrie/3975337 to your computer and use it in GitHub Desktop.
Save bstrie/3975337 to your computer and use it in GitHub Desktop.
Rust stdin example
use io::ReaderUtil;
fn main () {
let stdin = io::stdin();
let raw_input = stdin.read_line();
io::println(raw_input);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment