pub fn write_file(path: &str, text: &str) -> Result<(), Error>