ROBOT-GRASP/src/FileOperation.cpp
std::string FileOperation::findFileName(std::string path)
{
	int i, last;
	for (i = 0; path[i]; i++)
		if (path[i] == '\\')
			last = i;
	return path.substr(last + 1);
}
//Get file name from file path;
Get file name from file path.
Get file name from file path .
std::string FileOperation::findFileName(std::string path)
{
	int i, last;
	for (i = 0; path[i]; i++)
		if (path[i] == '\\')
			last = i;
	return path.substr(last + 1);
}
std :: string FileOperation :: findFileName ( std :: string path ) { int i , last ; for ( i = 0 ; path [ i ] ; i ++ ) if ( path [ i ] == ' \\ ' ) last = i ; return path . substr ( last + 1 ) ; }
Get file name from file path;
Get file name from file path ;