#include #include int main() { char * filename = "C:/users/athitsos/temp/hello.txt"; // open a file for writing // caution: if the file already exists, this line // erases all current contents. FILE * file1 = fopen(filename, "w"); // write some text into the file. fprintf(file1, "hello world\n"); fprintf(file1, "hello again\n"); // close the file. fclose(file1); }