How do I get a list of all files/directories in a specified directory (Eg. "/home") using C++ header files/namespaces and not C header files?
How do I get a list of all files/directories in a specified directory (Eg. "/home") using C++ header files/namespaces and not C header files?
I dont understand, why no C headers?
Hmm, this is such an odd request that I suspect it originated from a teacher or a junior V.P. Either way, you should be able to make use of the system() library function by including iostream.h.
HTHCode:system( "ls /home" );
Jason Deckard
Maybey, but I thought system was in stdlib and thats C, maybey its in both.