How might I use
I'm trying to get the infile to read spaces... so...Code:ifstream infile;
infile.open("filename.txt",ios:in);
infile.unsetf(ios::skipws);
That seems to just make it pause indefinately sometimes it crases with a runtime error... whats wrong with it?
Code:cout << "What message do you want to decrypt?\n";
infile.open("unencrypted.txt",ios::in);
infile.unsetf(ios::skipws);
strcpy(sInput,"\0");
while (!infile.eof())
{
infile >> sBuffer;
strcat(sInput,sBuffer);
}
infile.close();