Answer the question
In order to leave comments, you need to log in
Why can't I copy the file?
Good day :)
I open the file in binary mode for reading like this:
wstringstream wss;
wifstream wif(basePath, ios::binary);
if (wif.is_open()) {
wss << wif.rdbuf();
wif.close();
}
wofstream wof(tempFileName, ios::binary);
if (wof.is_open()) {
wof << wss.str().data();
wof.close();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question