如何列出c中的文件 [英] How to list the files in c

查看:48
本文介绍了如何列出c中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何列出指定目录中的所有文件

它不会提供鲜花..
它只想列出文件..

how to list all the files form the specified directory

it will not provide the floders..
its wants to list only the files..

推荐答案

^ ]及其合作伙伴 FindNextFile() [ ^ ]会为您完成.
FindFirstFile()[^] and its partner FindNextFile()[^] will do it for you.


http://www.linuxquestions.org/questions/programming-9 /c-list-files-in-directory-379323/ [ http://faq.cprogramming.com/cgi-bin/smartfaq.cgi? answer = 1046380353& id = 1044780608 [ ^ ]
http://stackoverflow.com/questions/612097/how-can-i-get-a-list-of-files-in-a-directory-using-c-or-c[^]
http://www.linuxquestions.org/questions/programming-9/c-list-files-in-directory-379323/[^]
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046380353&id=1044780608[^]


这篇关于如何列出c中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆