c++没有提供接口!!!可以通过 windows下的命令 system("dir>>tem.txt");查看目录!!!输出到文件中,再读写文件就好的!!
这属于Windows编程,查查Windows的api
查下FindFile