Function append_to_file

Source
pub fn append_to_file(file_path: &str, content: &[u8]) -> Result<(), Error>
Expand description

Appends content to a file.

§Arguments

  • &str - The path to the file.
  • &[u8] - The content to append.

§Returns

  • Result<(), std::io::Error> - Ok if successful, Err with error details otherwise.