I am new to visual C++ and would like to write a file finder. somthing that will search my hard drive and list all the files that I specify. Are there built in functions or do I need to write some kind tree traversal program to do it?
You can use the clase CFileFind in the following way,<br>
where szPatternPath can be anything eg : *.bmp,abc.txt etc<br>
CFileFind ff;<br>
BOOL bFF;<br>
bFF = ff.FindFile ( szPatternPath );<br>
while ( bFF )<br>
{<br>
bFF = ff.FindNextFile ();<br>
}<br>
<br>
try this out, All the Best<br>
SUN <br>
<br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.