FindFile

This is a discussion on FindFile within the Windows Programming forums, part of the Platform Specific Boards category; Guys, do win32 api offers a function to search a directory for files like FindFirstFile() and FindNextFile() but instead finding ...

  1. #1
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80

    FindFile

    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 ?
    /* Have a nice day */

  2. #2
    uh oh
    Join Date
    Jan 2005
    Location
    Ontario, CA
    Posts
    66
    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,
    cyreon

  3. #3
    rEtaRD r HUMANS TOO !!! rEtard's Avatar
    Join Date
    Feb 2005
    Posts
    80
    Yea, thats what i am stucked with, what if i wan the 2nd file or 3rd file as and when the user request?
    /* Have a nice day */

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21