pub fn append_string_to_file(path: &str, data: &str) -> bool
Expand description

Appends a string to a file.

Arguments

  • path - The path to the file to append the string to.
  • data - The string to append to the file.

Example

let success = cgl_rs::utils::append_string_to_file("log.txt", "Hello, world!");