Skip to main content

file_write

Function file_write 

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

Write bytes to a file (creates or overwrites)

§Arguments

  • path - Path to the file
  • data - Data to write

§Returns

  • Result<Void, FileError> - Success or error