Searching a folder
Does anybody know how to search a folder and get a list of files and folders in that folder. I will be using windows xp and c++. Thanks!
I would use boost::filesystem, though you can also use the Windows API functions FindFirstFile() and FindNextFile().
I suggest having a look at the FindFirstFile/FindNextFile WinAPI functions:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findfirstfile.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/findfirstfile.asp
You know, this seems to get asked at least once a week. I would suggest that this question gets asked frequently enough that perhaps a mod could put it into the FAQ? (applogies for not adding anything to the topic, but the prior posters have already answered the OP)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement