Guys, do win32 api offers a function to search a directory for files like FindFirstFile() and FindNextFile() but instead finding files by their position in the directory, meaning like 1st in the directory is File.txt 2nd is Test.txt. Is there such a function or i could use FindFirstFile to do it, if so, what wildcard parameter should i use ?
scan using c:\path\*.* first file returned is your first file in the directory. If your looking for .txt files then you would use c:\path\*.txt and the first file returned is the first .txt file in the directory.
hope that helps,
Yea, thats what i am stucked with, what if i wan the 2nd file or 3rd file as and when the user request?