#include <stdio.h>
int main() {
// File append
FILE *file;
char data[] = "This text will be appended.\n";
file = fopen("append.txt", "a");
if (file != NULL) {
fprintf(file, "%s", data);
fclose(file);
printf("Data appended to the file.\n");
} else {
printf("Unable to open the file.\n");
}
return 0;
}