This is the code:
{
//Open and write to (virtual) memory
if (memory)
ofstream outFile;
const char *outputFileName = ("memory.txt");
outFile.open(outputFileName, ios::out);
outFile<<input<<endl;
outFile.close();
}
This is the error:
|32|error: 'outFile' was not declared in this scope|
Now it appears that I did declare outFile properly but it doesn't seem that the compiler recognizes that. Either that or I'm missing something. I don't know. If anyone could please help me figure this out it would be greatly appreciated.