Skip to main content

write

Function write 

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

Write a slice as the entire contents of a file.

Wrapper for std::fs::write.