#include int main() { FILE *fp, *fp2; char c, opname[100], wfname[100]; int codekey=0; printf("enter INPUT FILE...\n"); scanf("%s", opname); if ((fp = fopen(opname,"r")) == NULL){ printf("//%s//File not found...\n", opname); exit(1); } printf("enter OUTPUT FILE...\n"); scanf("%s", wfname); printf("enter CODE KEY...\n"); scanf("%d", &codekey); printf("please wait...\n"); fp2 = fopen(wfname,"w"); printf("OPEN--%s--...\nENCODE START...\n", wfname); while ((c=getc(fp)) != EOF){ putc(c+codekey,fp2); } printf("ENCODING FINISHED!\n"); fclose(fp); printf("CLOSE --%s--...\n", opname); fclose(fp2); printf("CLOSE --%s--...\n", wfname); printf("COMPLETED!\n"); }