Ok, thanks for the help!
Now my next problem is creating a text file in that directory. What I basically do with the program is ask for a username & password, and make a directory with that that contains a username & password file in that directory.
Now that I have created a directory with the username, I need to open/create files in it, which I had previously done with:
Code:
ofstream userpasswordcreate;
userpasswordcreate.open("C:/Program Files/MUMS/Administrator/password.mums");
userpasswordcreate<<newuserpassword<<endl;
userpasswordcreate.close();
but now, I would need to change 'Administrator' into the string 'newusername' to open the right directory. How would I go about doing this? When I try:
Code:
ofstream userpasswordcreate;
userpasswordcreate.open("C:/Program Files/MUMS/"<<newusername<<"/password.mums");
userpasswordcreate<<newuserpassword<<endl;
userpasswordcreate.close();
it tells me:
no match for 'operator<<' in '"C:/Program Files/MUMS/" << newusername'
how would I go about using the string in the path name?
Thanks!
FlyingIsFun1217