在std c ++中搜索文件 [英] search file in std c++

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

问题描述



我正在尝试寻找一种在目录及其子目录中搜索特定文件的方法.
在MFC中,CFileFind可用,在std c ++(标准库)中有什么办法

Hi,

I''m trying to find a way to search for a specific file in a directory and its sub directories.
In MFC the CFileFind is available, is there any way in std c++(standard lib)

Thanks!

推荐答案

FindFirst和FindNext是Windows API的一部分:相应的标准C函数是findfirst()和findnext().
另请参见:

http: //stackoverflow.com/questions/235422/is-there-a-standard-to-do-findfirst-findnext-with-gcc-on-linux-using-stl [ http://forums.devshed.com/c-programming-42/findfirst- and-findnext-52982.html [ ^ ]

希望这会有所帮助,
巴勃罗.
FindFirst and FindNext are part of the Windows API: the corresponding standard C functions are findfirst() and findnext().
See also:

http://stackoverflow.com/questions/235422/is-there-a-standard-way-to-do-findfirst-findnext-with-gcc-on-linux-using-stl[^]

http://forums.devshed.com/c-programming-42/findfirst-and-findnext-52982.html[^]

Hope this helps,
Pablo.


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

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