#include <stdio.h>

int main() {
     // 파일 열기 
     // FILE * 포인터이름 = fopen(파일이름, 파일모드);

     // w : 새로 쓰기
     // FILE * file = fopen("write_file.txt", "w");

     // a : 추가하기
     FILE * file = fopen("append_file.txt", "a");

     fprintf(file, "abc\n");

     // 파일 닫기
     fclose(file);


     return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: