/*
Decrypting File Data
*/
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
char c;
ifstream of("F:\\Project\\C++\\5 File Operations\\Encrypting File Data\\Encrypt.txt",ios::in);
ofstream ofs("Decrypt.txt",ios::out);
of.get(c);
while(!of.eof())
{
c=c-3;
ofs<<c;
of.get(c);
}
of.close();
ofs.close();
cout<<"\n\n Decrypted Sucessfully!!";
return 0;
}
Decrypting File Data
*/
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
char c;
ifstream of("F:\\Project\\C++\\5 File Operations\\Encrypting File Data\\Encrypt.txt",ios::in);
ofstream ofs("Decrypt.txt",ios::out);
of.get(c);
while(!of.eof())
{
c=c-3;
ofs<<c;
of.get(c);
}
of.close();
ofs.close();
cout<<"\n\n Decrypted Sucessfully!!";
return 0;
}