I made an empty text file called "menu" in XCode, and I am having trouble opening it in c++.
Here is the relevant code:
Here is the relevant code:
Code:
#import <fstream>
void populateMenu()
{
using namespace std;
{
char* line;
ifstream menuFile;
menuFile.open("menu");
int i=0;
if(menuFile)
{
// The code here never gets run
}
}
}