#include #include using namespace std; char CodeChar(const char Plain); int main() { fstream CodeFile("code.txt", ios::in | ios::out); string fdata; if (CodeFile.fail()) { cout << "Failed to open code.txt.\n"; return(0); } else { while(getline(CodeFile, fdata)) { string encoded; encoded = ""; for (int i = 0; i