What is the simplest way to get the file name that from a path?
string filename = \"C:\\\\MyDirectory\\\\MyFile.bat\"
In this example, I s
A slow but straight forward regex solution:
std::string file = std::regex_replace(path, std::regex("(.*\\/)|(\\..*)"), "");