Don't loop back on resume file read failure...
...it's inconvenient for testing.
This commit is contained in:
parent
0a63b5e2d6
commit
bed5fb747b
1 changed files with 1 additions and 1 deletions
2
misc.c
2
misc.c
|
@ -997,7 +997,7 @@ L20: printf("\nFile name: ");
|
||||||
if (NAME[strlen(NAME)-1] == '\n')
|
if (NAME[strlen(NAME)-1] == '\n')
|
||||||
NAME[strlen(NAME)-1] = '\0';
|
NAME[strlen(NAME)-1] = '\0';
|
||||||
F=fopen(NAME,(IN ? READ_MODE : WRITE_MODE));
|
F=fopen(NAME,(IN ? READ_MODE : WRITE_MODE));
|
||||||
if(F == NULL) {printf("Can't open file, try again.\n"); goto L20;}
|
if(F == NULL) {printf("Can't open file, try again.\n"); /* goto L20; */}
|
||||||
return;
|
return;
|
||||||
|
|
||||||
L30: if(IN)IGNORE(fread(ARR,sizeof(long),250,F));
|
L30: if(IN)IGNORE(fread(ARR,sizeof(long),250,F));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue