Skip to main content

file_write

Function file_write 

Source
pub fn file_write(path: &str, data: &[u8]) -> Result<EmptyStruct, FileError>
Expand description

Write bytes to a file (creates or overwrites)

ยงErrors

Returns a FileError if the filesystem operation fails (e.g. path not found, permission denied, or an I/O error).