pub fn write_file(file_path: &Path, data: &str) -> Result<(), Box<dyn Error>>
Write file with std::Path.