pub fn append_file(path: &str, data: &[u8], size: usize) -> bool
Expand description
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.
let data = [1, 2, 3];
let success = cgl_rs::utils::append_file("log.txt", &data, 3);