extern crate memmap;
use std::env;
use std::io::{self, Write};
use memmap::{Mmap, Protection};
fn main() {
let path = env::args().nth(1).expect("supply a single path as the program argument");
let mmap = Mmap::open_path(path, Protection::Read).unwrap();
io::stdout().write_all(unsafe { mmap.as_slice() }).unwrap();
}