I have this program and I am doing an IF statement to get it to save a file but i am having trouble understanding why it wont let me, I keep getting error LNX2001 and 1120
This is the bit of code
string saveTextToFile (string, ); // Problem is here when i am defining it.
cout << "Encrypted Text : " << text;
cout << "\nWould you like to save the result to Encypted.txt? <Y or N>: ";
if (answer == 'Y')
{
saveTextToFile(text,"Encrypted.txt");
}