pub fn write_file(path: &str, bytes: &[u8]) -> Result<(), &'static str>
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.
bytes
path
std::fs::write
std
read_file