// This program reads data from a file.
// Open the file.
// Read the numbers from the file and
// display them.
while (inputFile >> number)
cout << number << endl;
// Close the file.
Since this type of problem is usually a path problem what you can do if reverse the open statement and make it for output. Opening a file for output will create the file if it does not exist. Give the file name an unusual name that is easy to search for. Do a search for that name an you will see which sub directory it is in and that is where you will need to put the input file.
The other option is to put all your input files in one place an include the full path to the file name.