From de248a594380a9ed9dbf2ac8d6bb1c4c522542be Mon Sep 17 00:00:00 2001 From: Elias Bennour Date: Sat, 9 Dec 2023 17:19:43 +0100 Subject: [PATCH] update x --- codeReader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codeReader.c b/codeReader.c index 858813e..9a2bc44 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\n", path); exit(EXIT_FAILURE);