Searching a folder

Started by
2 comments, last by Erzengeldeslichtes 18 years, 4 months ago
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!
Advertisement
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
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)
----Erzengel des Lichtes光の大天使Archangel of LightEverything has a use. You must know that use, and when to properly use the effects.♀≈♂?

This topic is closed to new replies.

Advertisement