Hi All,
Back again. This time my problem lies in checking whether the end user has requested the proper file for data processing. In other words, the program prompts the end user for a file name. If the file name is correct then the program will proceed and cout the entire file; if file name is not correct program re-prompts end user for file name. Here's what I came up with that doesn't work:
Any direction would be appreciatedCode:while (loop > 1) { cout << endl << endl << " Please enter the name of file: "; cin >> fileName; inData.open(fileName.c_str()); // Get Data inData >> inventorFile; if (inventorFile != " ") cout << endl << inventorFile << endl; loop++; else loop = 0; }
bob2509