#include <stdio> FILE *stream = fopen("myfile.txt", "a+"); fputs("my file content", stream); fclose(stream);