Original Post
Im confued a little, I need to check if the user has inputted a Y or N character and I wrote this to check but i keep getting an error. please help. if (dataBool == y) { ofstream fout (dataName); cout << "\nData saved to " << dataName<< " file."; } the basic idea is that if they press Y i will save some data to a file. I cin >> dataBool on the line preceding this. cheers