I need to get characters one at a time from an ofstream because I need to pass the characters into a function. This is what I was trying but it says "ofstream has no member named get".
Here is the code I am using.
ofstream outFile("source.txt", ios::out);
a1.prepare(inFile2, outFile);
ifstream inFile3("encrypted.txt", ios::in);
char ch;
while(outFile.get(ch))
{
a1.encode(ch);
}
Thanks in advance for any advice.