pub fn write_file<P>(path: P, content: &str) -> Result<(), Box<dyn Error>>where P: AsRef<Path> + Clone,
write file, for generating classes files