Fixed bug at yon_file_save function

pull/21/head
parent 41df79e0b2
commit 3ac9cb3fed

@ -1935,7 +1935,7 @@ config_str yon_file_open(char *file_path, int *size){
} }
int yon_file_save(char *file_path, char *text){ int yon_file_save(char *file_path, char *text){
FILE *file = fopen(file_path,"r"); FILE *file = fopen(file_path,"w");
if (file){ if (file){
fputs(text,file); fputs(text,file);
fclose(file); fclose(file);

Loading…
Cancel
Save