CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    1

    How to use _findfirst and _findnext function

    How to use _findfirst and _findnext function?


  2. #2
    Join Date
    May 1999
    Location
    Antwerp, Belgium
    Posts
    136

    Re: How to use _findfirst and _findnext function

    example :

    struct _finddata_t c_file;
    long hFile;

    if ( (hFile = _findfirst("*.c", &c_file)) == -1L )
    printf("No *.c files in current directory");
    else
    {
    do
    {
    printf("%s\n", c_file.name);
    } while ( _findnext(hFile, &c_file) == 0 )
    _findclose(hFile);
    }




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured