Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- int main(void)
- {
- FILE *myFile;
- myFile = fopen("../map1.map", "r");
- if (myFile == NULL){
- printf("Couldn't open file.n");
- exit(-1);
- }
- char buffer[10];
- if (fscanf(myFile, "%10s", buffer) != 1){
- printf("The file is not formated correctly.n");;
- fclose(myFile);
- exit(-1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement