pub fn write_file(path: &Path, data: &[u8]) -> Result<()>
Expand description
Writes data to a file.
ยงExamples
use std::path::Path;
use rust_code_analysis::write_file;
let path = Path::new("foo.txt");
let data: [u8; 4] = [0; 4];
write_file(&path, &data).unwrap();