i have my file input
like this
ifstream inFile;
inFile.open(fileName.c_str());
and i cin >> fileName;
i want the output file name to be the input filename with .dat added to it
eg if fileName was c:/tmp/test.txt
i want the output to be c:/tmp/test.txt.dat
anyone know how i can do this everything ive tried isnt working