Created
October 29, 2012 18:07
-
-
Save bstrie/3975337 to your computer and use it in GitHub Desktop.
Rust stdin example
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 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