I would like to rename and retain the source file by using C++. I use this for renaming the file.
For eg:
rename(source_file.txt, destination_file.txt);
In this, I would like to retain the source_file.txt. By default, this function deletes the source_file and saves it as destination_file.