write

Function write 

Source
pub fn write<P: AsRef<Path>, C: AsRef<[u8]>>(path: P, contents: C) -> Result<()>
Expand description

Writes a slice as the entire contents of a file.

ยงErrors

May return any of the same errors as std::fs::write