#include <stdio.h>
int main() {
    FILE *afp, *bfp;
    char *fname="c.txt"; 
    char ch;
    afp=fopen(fname, "w"); 
    if(afp==NULL){
        printf("a파일 개방 실패.\n");
        return 1;
    }
    bfp=fopen("b.txt", "a");           <- 이부분입니다
    if(bfp==NULL){
        printf("b파일 개방 실패.\n");
        return 1;
    }
    printf("추가 데이터를 입력.\n");
    while(1){
        ch=getchar();
        if(ch==EOF) break;
        fputc(ch, bfp);
    }
    fclose(afp);
    fclose(bfp);
    return 0;
}

저부분에서 아까 질문 답변인 C:\\sexy\\test.txt 처럼 직접 경로를 잡아주는게아닌
프로그램 실행에서 원하는 파일을 불러오는 방법은 없나요??