Home > Mobile >  What is system:80 error showing while trying to copy file content?
What is system:80 error showing while trying to copy file content?

Time:07-13

I have this code:

#include <filesystem>
#include <fstream>
using namespace std::filesystem;

int main() {
    std::error_code ec;
    bool hi = copy_file("hi.txt" , "sth.txt",ec);
    std::cout << ec;
    return 0;

}

When I compile and run this, it throws system:80, which according to image

bool hi = copy_file("hi.txt", "sth.txt", copy_options::skip_existing, ec);
bool hi = copy_file("hi.txt", "sth.txt", copy_options::overwrite_existing, ec);
bool hi = copy_file("hi.txt", "sth.txt", copy_options::update_existing, ec);
  • Related