You are coutint the data instead of CustomerFileing it, if that makes sense. Since no output to the customer file ever happens, C++ doesn't bother to actually make the file. (If you wanted a zero-length file you'd have to flush() it before close()ing it.)
If you change your TheScreen function to take an ostream object as argument, then you can print both to file and to the screen:
1 2 3 4
void TheScreen( customerDataBase customerInfo, std::ostream &outs )
{
// you make the remaining fixes here
}
The function now takes an additional argument: the thing you want to write to. So inside addNewCustomer when you want to write a customer's data you can write to both the file and the stream: