Code:
ifstream fin;
fin.open("/Users/Mike/Desktop/data.txt");
if (fin.fail())
{
cerr <<"Unable to open data.txt" << endl;
exit(1);
Is what I have. and Xcode tells me "Error from Debugger. The program being debugged is not being run. I also get an error in terminal.
data.txt is on the desktop. What am I missing here?