I am at a point that I have no idea what to do. See my code below. The program will not open my mail.dat file that I am supposed to use to get the output of just the email address's on it that outputs to another file "address.dat" I think my code is right but I get nothing, any advice, thanks
// This programs outputs email address's that have the "@" symbol in them
// Open Data Files
inData.open("mail.dat");
outData.open("adresses.dat");
// Press enter to get the output to an external file
cout << "Please press enter for email address's" << endl;
// Test if file is there
if (!inData)
{
cout << "If mail.dat can not be found program will close" << endl;
cin.get();
cin.get();
return 1;
}