Hey guys, I have a question. I'm writing a script in c++ and want to have the script copy a file whose name was previously determined by the script to a output file who's name is determined through functions and procedures within the script. The whole script is looped until it is finished copying, but that's besides the point.
So for example, the script determines that the file name to be copied is "asdf.txt"
I cannot use
because this process cannot be looped. (Because it will just keep on copying the same file to the same destination over and over.) In other words, is it possible to place variables inside the CopyFile() function? Or is there another way to do this?