やっつけ
#include <stdio.h>
#include <string.h>
int main(void)
{
    char w[1024]={0};
    puts("英和辞典");
    do{ printf("英単語:"); fscanf(stdin,"%s",w);
        if(strcmp(w,"q")==0) break;
        else{
            char buf[1024]={0};
            FILE *fin = fopen("ta.doc","rb");
            while(fgets(buf, sizeof(buf), fin)!=NULL){
                *(strchr(buf, ','))='\0';
                if(strcmp(buf,w)==0){
                    *(strrchr(&buf[strlen(w)+1], '\n'))='\0';
                    printf("日本語で「%s」\n", &buf[strlen(w)+1]);
                }
            }
            fclose(fin);
        }
    }while(1);
    return 0;
}