Function template_cp::iom::file_writer

source ·
pub fn file_writer(filename: &str) -> Result<BufWriter<File>>
Expand description

Creates a BufWriter from a file

Examples

use template_cp::file_writer;

let n = 42;
let mut out = file_writer("out.txt").unwrap();
writeln!(out, "{}", n).ok();