This commit is contained in:
2026-02-23 09:46:54 +01:00
parent 28dee070b3
commit 28546c7ce1
5 changed files with 22 additions and 65 deletions
@@ -11,7 +11,7 @@ int write_one_by_one(char *filename, const char *text){
index ++;
}
//fputc(*text, file);
fputc('\0', file);
//fputc('\0', file);
fclose(file);
return 0;
}
@@ -21,7 +21,9 @@ int write_all_in_one(char *filename, const char *text){
FILE *file = fopen(filename, "w");
if(!file)return 1;
fprintf(file, text);
fprintf(file, "%s\n", text);
fclose(file);
return 0;
}
/*