#include <iostream>
#include <string>
#include <cctype>
#include <sstream>
using namespace std;
 
int main(){

    //strcpy -  String copy,   strcat= string concatenantion?,  strlen.
    
    //char chArray[80];
    //char chArray2[80];
    
    //cin >> chArray; // Doesn't handle white space.
    //getline(cin, varname)-- not suitable for character arrays.   Be careful with these.  
    //cout << "Enter your first name: ";
    //  cin >> chArray;
    
    //cout << "\nEnter your last name: ";
    //cin >> chArray2;
    //cin.getline(chArray, 79);//Last character needs to be a '\0'--Null zero.
    /*
    int i;
    for(i=0; chArray[i]!='\0'; i++){//   |D|A|M|I|E|N|\0| | | | | | | | | | | | | | | |
        chArray2[i]=chArray[i];
    }
    chArray2[i] = '\0';
     */
    //strcpy(chArray2, chArray);
           
    /*
    int size1 = strlen(chArray);
    int size2 = strlen(chArray2);
    
    strcat(chArray, chArray2);// -- proper way to strcat
    
    
    cout <<"Your name is: "<<chArray << endl <<"Which is: " << size1+size2 << " Letters in length";
     **/
    
    
    
    char fileName[256];
    char fileDir[256];
    char file[512];
    
    cout << "Enter the filename that you want to use:  ";
    cin >> fileName;
    
    cout <<"\nEnter the file's directory: ";
    cin >> fileDir;
    
    strcat(fileDir, fileName);
    strcpy(file, fileDir);
    
    cout<<file;
    
    
    
    
    
    
    
    
    
 return 0;
}
