diff --git a/tte.c b/tte.c index 833eec4..383325f 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");