I want to extract the name of the current binary and use it inside my program. Can I do this somehow?
#include <iostream>
int main(int argc, char** argv)
{
std::cout << arv[0]; // print name of program
return 0;
}
Basically, I want a portable version of the above? I am happy to use any Boost or Standard Library tools.