diff --git a/codeReader.c b/codeReader.c index a698b10..328829e 100644 --- a/codeReader.c +++ b/codeReader.c @@ -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);