#include #include //From http://www.richelbilderbeek.nl/CppRemovePath.htm //Returns the filename without path const std::string RemovePath(const std::string& filename) { const int sz = static_cast(filename.size()); const int path_sz = filename.rfind("\\",filename.size()); if (path_sz == sz) return filename; return filename.substr(path_sz + 1,sz - 1 - path_sz); }