#include <stdio.h> int main(void) { FILE* file = fopen("test.txt", "a+"); fputs("check!", file); fputc(EOF, file); fclose(file); return 0; }