fix dfbnjkhghjdfsbg
This commit is contained in:
parent
dcb665f5a6
commit
bdb0ce63b8
@ -10,7 +10,7 @@ unsigned int fromFile(char *path, struct program program) {
|
||||
unsigned int countInstructions;
|
||||
unsigned int staticVars;
|
||||
FILE *fptr;
|
||||
fptr = fopen(path, "r+b");
|
||||
fptr = fopen(path, "r");
|
||||
if (fptr == NULL) {
|
||||
printf("Error: cannot open code file %s", path);
|
||||
exit(EXIT_FAILURE);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user