pub fn write_file<F: AsRef<Path> + ?Sized>(f: &F) -> Result<Box<dyn Write>>
Writes content to a file or standard output if the path is “-”.