I have to save a .txt file in a folder. I have given the directory but it involves more then 1 variable. Here is the code:
ofstream outfile;
outfile.open(("c:\\User\\Taha Mukhtar\\source\\repos\\ConsoleApplication3\\ConsoleApplication3\\Folder"+fileNumber+"\\"+fileName);
The fileNumber
and fileName
are variables of the type int and string respectively.
Please tell me the correct syntax.