#include int main() { int CODEN, COD; FILE *fp, *fp2; char c, opf[100], outpf[100]; printf("Enter openfilename...\n"); scanf("%s", opf); if ((fp = fopen(opf,"r")) == NULL){ printf("NOT FOUND!\n"); exit(1); } printf("Enter outputfile...\n"); scanf("%s", outpf); printf("Enter CODENUMBER...\n"); scanf("%d", &CODEN); fp2 = fopen(outpf,"w"); printf("OPEN %s...\n", outpf); while ((COD = getc(fp)) != EOF){ c = COD - CODEN; putc(c, fp2); } printf("FINISHED!\n"); fclose(fp); printf("CLOSE %s...\n", opf); fclose(fp2); printf("CLOSE %s...\n", outpf); printf("COMPLETED!\n"); }