thanks for the fast reply
im getting error :
error C2039: 'iequals' : is not a member of 'boost'
you have any idea why ?
thanks
On Wed, May 14, 2008 at 8:13 PM, John Femiani
Hello all i like to get all folder and files names under giving folder , what will be the optimized way ( if any ) that boost can offer can you point me to example code thanks
I do not know if it is optimized but it is portable. You can use the BOOST::Filesystem library/interface.
http://www.boost.org/doc/libs/1_35_0/libs/filesystem/doc/index.htm
iknow , i just need code sample to do it in the best way
recursive_directory_iterator
Heres a snippet:
for( fs::recursive_directory_iterator it(folder) ; it != fs::recursive_directory_iterator() ; ++it) { if (boost::iequals(fs::extension(it->path()), ".png")){ files.push_back(it->path()); } }
-- John _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users