Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ copy file to another directory

#include <filesystem>
namespace fs = std::filesystem;
 
int main()
{
    fs::copy("C:sandboxfile1.txt", "C:sandboxfile2.txt"); // copy file
}
Source by en.cppreference.com #
 
PREVIOUS NEXT
Tagged: #copy #file #directory
ADD COMMENT
Topic
Name
1+8 =