Function cgl_rs::utils::append_file

source ·
pub fn append_file(path: &str, data: &[u8], size: usize) -> bool
Expand description

Arguments

  • path - The path to the file to append data to.
  • data - A slice of bytes to append to the file.
  • size - The size of the data slice.

Example

let data = [1, 2, 3];
let success = cgl_rs::utils::append_file("log.txt", &data, 3);