I have been wot=rking on my social secutriy EXAMPLE program from a book i have to prectice input files in c++. It wont open for me when i run the program tho. would anyone know how to fix it?
#include <string>
#include <fstream>
using namespace std;
int main()
{
ifstream inData;
ofstream outData;
inData.open("name.dat");
outData.open("name.out");
string SocialSecurity; //Social Security Number
string FirstName; //First Name
string LastName; //Last name
string MiddleName; //Middle name
string MiddleInitial; //Middle Initial