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


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

	while((ch=fgetc(src))!=EOF)
        fputc(ch, des);

    if(feof(src)!=0)
        puts("파일복사 완료!");
    else
        puts("파일복사 실패!");
    fclose(src);
    fclose(des);
    return 0;
	
}

웹사이트에 삽입

이 프로젝트를 웹사이트에 삽입하려면 다음 코드를 복사하여 웹사이트의 HTML에 붙여넣으세요.