5 use std
::io
::{self, Write}
;
9 /// Output a file's contents to stdout. The file path must be provided as the first process
12 let path
= env
::args()
14 .expect("supply a single path as the program argument");
16 let file
= File
::open(path
).expect("failed to open the file");
18 let mmap
= unsafe { Mmap::map(&file).expect("failed to map the file") }
;
22 .expect("failed to output the file contents");