create_write_file

Macro create_write_file 

Source
macro_rules! create_write_file {
    ( $path:expr,$data:expr ) => { ... };
}
Expand description

§create and write to file

if let Ok(_r) = create_write_file!("./demo.txt", "alen".as_bytes()) {
   println!("{:?}", _r);
}