#include
#include
#include
#include
void main(int argc, char **argv[])
{
DIR *dir;
struct dirent *pDir;
char path[100]=".";
dir = opendir(path);
while(dir !=NULL && (pDir = readdir(dir)) != NULL) {
printf("now read:%s\n", pDir->d_name);
}
closedir(dir);
}
阅读(584) | 评论(0) | 转发(0) |