Function bin_buffer::buffer_write_file_append
source · Expand description
Writes a buffer to the end of a file. Will create a new file if none exists.
Example
use bin_buffer::*;
let a = vec![0,1,2];
let path = std::path::Path::new("./buffer1.ntbr");
buffer_write_file(&path, &a);
let b = vec![3,4];
buffer_write_file_append(&path, &b);
let res = buffer_read_file(&path);
assert_eq!(res, Option::Some(vec![0,1,2,3,4]));