Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

boost filesystem get filename without exetention from path

boost::filesystem::path p("c:/dir/dir/file.ext");
std::cout << "filename and extension : " << p.filename() << std::endl; // file.ext
std::cout << "filename only          : " << p.stem() << std::endl;     // file
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #boost #filesystem #filename #exetention #path
ADD COMMENT
Topic
Name
2+1 =