diff --git a/tte.c b/tte.c index 9629eca..d41a542 100644 --- a/tte.c +++ b/tte.c @@ -1067,7 +1067,7 @@ void editorOpen(char* file_name) { editorSelectSyntaxHighlight(); - FILE* file = fopen(file_name, "a+"); + FILE* file = fopen(file_name, "r+"); if (!file) die("Failed to open the file");