#include<stdio.h>
      #include<conio.h>
      
      int main(){
        char fname[20], ch;
        FILE *fps, *fpt;
        printf("Enter Filename: ");
        gets(fname);
        fps = fopen(fname, "w");
        if(fps == NULL)
          return 0;
        fpt = fopen("temp.txt", "r");
        if(fpt == NULL)
          return 0;
        ch = fgetc(fpt);
        while(ch != EOF){
          ch = ch-100;
          fputc(ch, fps);
          ch = fgetc(fpt);
        }
        fclose(fps);
        fclose(fpt);
        printf("\nFile %s Decrypted Successfully!", fname);
        getch();
        return 0;
      }
      
      C language logo

      Decrypt file

      Codiga's C Recipes

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.