fix dfbnjkhghjdfsbg

This commit is contained in:
Elias Bennour 2023-12-10 00:18:20 +01:00
parent dcb665f5a6
commit bdb0ce63b8

View File

@ -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);