write_content

Function write_content 

Source
pub fn write_content<P, F>(path: P, write_fn: F) -> Result<()>
where P: AsRef<Path>, F: FnOnce(&mut File) -> Result<()>,