Function write_bytes
Source pub fn write_bytes<P: AsRef<Path>, B: AsRef<[u8]>>(
path: P,
contents: B,
) -> CoreResult<()>
Expand description
Writes bytes to a file
§Arguments
path
- Path to the file
contents
- Bytes to write
§Returns
Ok(())
if the file was written successfully
Err(CoreError::IoError)
if the file could not be written