#include <stdio.h>
#include <math.h>
#include <string.h>

int main(void){
    
	FILE * fp=fopen("simple.txt", "wt");
    if(fp==NULL)
    {
        puts("파일오픈 실패!");
        return -1;
    }

    fputc('A', fp);
    fputc('B', fp);
    fputs("My name is Hong \n", fp);
    fputs("Your name is Yoon \n", fp);
    fclose(fp);
    return 0;
	
}

Insluiten op website

Om dit project op uw website in te sluiten, kopieer de volgende code en plak deze in de HTML van uw website: