I have a a file path as
std::string
For example:
C:\\folder1\\folder2\\file.dll
I want to get the folder path
For example: C:\folder1\folder2\.
I tried
str=path.substr(0,path.find_last_of("\\/"))
But, this ommits the last \\
also.