Author: Anonymous Language: text
Description: SPC - List files in Folder Timestamp: 2008-11-19 00:39:38 -0400
View raw paste Reply
  1. /*
  2.     List files in Folder
  3.    
  4. */
  5.     DIR * dirp;
  6.     struct dirent * dp;
  7.     dirp = opendir( path );
  8.     while ( dp = readdir(dirp)) {
  9.         // dp->dp_name is the name of the item
  10.     }
  11.     closedir( dirp );
  12.  
View raw paste Reply