From bdb0ce63b85942a7e91302df5f117580eaa3f42e Mon Sep 17 00:00:00 2001 From: Elias Bennour Date: Sun, 10 Dec 2023 00:18:20 +0100 Subject: [PATCH] fix dfbnjkhghjdfsbg --- codeReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);