Skip to content

Instantly share code, notes, and snippets.

@eduardoedson
Last active July 19, 2016 20:36
Show Gist options
  • Save eduardoedson/16073bd43abd16bcb565 to your computer and use it in GitHub Desktop.
Save eduardoedson/16073bd43abd16bcb565 to your computer and use it in GitHub Desktop.
FILE* open_file(char *name, char *extension){
FILE* file;
file = fopen(name, extension);
if(file == NULL){
printf("\nAn error occurred while trying to open the file.\n");
}
return file;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment