Skip to main content

write_file

Function write_file 

Source
pub fn write_file(path: &str, bytes: &[u8]) -> Result<(), &'static str>
Expand description

Write bytes to path, creating or truncating it — std::fs::write for a crate with no std. The error is a short reason, as for read_file.