How to make copies of the executable itself in C++?
I want to make copies of the exe file itself multiple times. I tried the following code: #include <fstream> #include <string> int main() { std::ifstream from("main.exe", std::ios::binary); auto buf { from.rdbuf() }; for(int x { 0 }; x <= 10; ++x) { std::string name { "main" + std::to_string(x) + ".exe" }; std::ofstream out(name, std::ios::binary); out… Read More How to make copies of the executable itself in C++?