go
This commit is contained in:
@@ -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;
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user