boost filename extension with multiple "."
I have filenames like this : 09.04.201115_09_ch_4.txt 

I would like to extract the filestem only. I tried using boost filesystem path, but it has problems with the multiple dots in the filename. (I didn't come up with the naming).

Is there a way around that? Can I get only the filename without the extension? My code looks like this:

     std::string stringtmp = path.parent_path().string() +"/"+path.stem().string()+".png" ;

boost filename extension with multiple "."
===

I have filenames like this : 09.04.201115_09_ch_4.txt 

I would like to extract the filestem only. I tried using boost filesystem path, but it has problems with the multiple dots in the filename. (I didn't come up with the naming).

Is there a way around that? Can I get only the filename without the extension? My code looks like this:

     std::string stringtmp = path.parent_path().string() +"/"+path.stem().string()+".png" ;
