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
std::string getfilename(std::string path) { path = path.substr(path.find_last_of("/\\") + 1); size_t dot_i = path.find_last_of('.'); return path.substr(0, dot_i); }