pub fn create_file(path: &str) -> fs::File {
    match std::fs::File::create(&path) {
        Ok(file) => file,
        Err(err) => {
            panic!("Error creating file {}\n{}",
                   path, err);
        },
    }
}
// Function to create a file based on input path
//
// Will panic if error
Function to create a file based on input path
Will panic if error
Function to create a file based on input path Will panic if error
pub fn create_file(path: &str) -> fs::File {
    match std::fs::File::create(&path) {
        Ok(file) => file,
        Err(err) => {
            panic!("Error creating file {}\n{}",
                   path, err);
        },
    }
}
pub fn create_file ( path : & str ) -> fs :: File { match std :: fs :: File :: create ( & path ) { Ok ( file ) => file , Err ( err ) => { panic ! ( " \n " path err ) ; } , } }
Function to create a file based on input path
Will panic if error
Function to create a file based on input path Will panic if error
path
&str
path
&str