C目录操作 C语言读取文件夹内容 char dirPath[] ="/home/xxxx/TestFiles/chapeter4"; DIR* dir = opendir(dirPath); struct dirent * dirent = readdir(dir); while (dirent != NULL) { printf("%s\n",dirent->d_name); dirent = rea 学习记录 2024-01-09 27 点赞 0 评论 40 浏览