Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char ch,mod;
- char key = 97;
- ifstream fin("Encrypted.txt",ios::binary);
- if(!fin)
- {
- MessageBox::Show("Couldn't open file : Encrypted.txt");
- }
- while(fin.get(ch))
- {
- if(ch==EOF)
- break;
- mod = ch + key;
- if (mod < 0) mod +=256;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement