I'm having a simple i/o with file problem. I have the name coming from a string but it just wont open at all. Incoming code:
string notename[] = {"NULL","empty"};
ifstream readnote;
readnote.open(notename[x].c_str(),ios::in|ios::out);
if(!readnote)
{
cout << "Read Error";
}
its prolly something small but i keep getting the error, can u see it?