write

Function write 

Source
pub async fn write<P, B>(path: P, buf: B) -> BufResult<(), B>
where P: AsRef<Path>, B: IoBuf,
Available on crate feature fs only.
Expand description

Write a slice as the entire contents of a file.

This function will create a file if it does not exist, and will entirely replace its contents if it does.