Last active
March 22, 2018 16:47
-
-
Save ryochack/0670a404d0a004331a7d2a8d4ba4a94e to your computer and use it in GitHub Desktop.
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 std::io; | |
use std::fs::File; | |
fn main() { | |
let r = io::stdin(); | |
let mut reader = r.lock(); | |
let mut writer = File::create("temp_copy.txt").unwrap(); | |
let _ = io::copy(&mut reader, &mut writer); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment