i was wondering if there was a way to run an ls, possibly with system(), and read the results in an array of let's say char*'s. I need to get a list of filenames from a directory
i was wondering if there was a way to run an ls, possibly with system(), and read the results in an array of let's say char*'s. I need to get a list of filenames from a directory
tag.
Look into the use of readdir and related functions.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
thanks laserlight
those seem to be exactly what im looking for