I have the path and I need to get the name ofall files in the directory whos extention is *.___
how might I go about doing this on both windows and *.nix?
I have the path and I need to get the name ofall files in the directory whos extention is *.___
how might I go about doing this on both windows and *.nix?
STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.
#include <dir.h> ?
Read.To access a directory, and the files within it, is a very compiler/OS specific task. It's not practicable to show how to do this for all variations, so here are some examples for various compilers.
Boost::filesystem might provide a way to do this that works on most platforms.
Thanks for an outstandingly worthless post. Save yourself the keystrokes next time.Originally Posted by Tonto
I'm sure he would, if you ever bothered to read information posted, or bothered to contribute some actual information of what you've tried.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.