How to check that my encryption is successful.
Code:#include<stdio.h> #include<conio.h> main() { FILE *fp, *ft; char ch; fp = fopen("Encrypt.txt","r"); ft = fopen("Encrypt1.txt","w"); if (fp == NULL) printf("File can't be opened\n"); if (ft == NULL) printf("File can't be opened\n"); while((ch = getc(fp)) != EOF) { putc(~ch , ft); // printf("%c", ch); // system("pause"); } while((ch = getc(ft)) != EOF) { printf("%c", ch); } system("pause"); fclose(fp); fclose(ft); }