Skip to main content

file_write_string

Function file_write_string 

Source
pub fn file_write_string(path: &str, data: &str) -> Result<Void, FileError>
Expand description

Write string to a file (creates or overwrites)

§Arguments

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

§Returns

  • Result<Void, FileError> - Success or error