Skip to content

Instantly share code, notes, and snippets.

@BasixKOR
Created February 23, 2020 01:27
Show Gist options
  • Save BasixKOR/562be6e30f4ed1fe859e8b880d8d499b to your computer and use it in GitHub Desktop.
Save BasixKOR/562be6e30f4ed1fe859e8b880d8d499b to your computer and use it in GitHub Desktop.
Buffered Standard I/O Quickstart
use std::io::{stdin, stdout, BufRead, BufWriter, Write};
fn main() {
let stdin = stdin();
let mut stdin = stdin.lock();
let stdout = stdout();
let mut stdout = BufWriter::new(stdout.lock());
// your code here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment