ACE_Direct的使用
#include "ace/Dirent.h"#include <iostream>int lsfile(const char *path){ ACE_Dirent mydir; int retCode = mydir.open(path); if (0 != retCode) { return retCode; } for (dirent *dir=mydir.read(); dir != NULL; dir=mydir.read()) { std::cout << dir->d_name << std::endl; } return 0;}int main(int argc, char *argv[]){ lsfile("F:\\log"); return 0;}