I'm trying to read in the chars for a file in order to compare two text files. The problem is I can't seem to load space characters into my vectors. Any suggestions for me?
vector<char> cyphVector;
char c;
//fill vector with cypher file chars
while( cyphFile.good() ){
cyphFile >> c;
cyphVector.push_back(c);
}
//fill vector with plain file chars
vector<char> plainVector;
char d;
while(plainFile.good()){
plainFile >> d;
plainVector.push_back(d);
cout << d;
}