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

    Checking directories for files....

    How can i open a directory to see what the file names are in the directory? Is it possible to just open the directory and when you (fin >>) you get the file names?


    Any help would be much appreciative.


    -Avantos
    "People demand freedom of speech to make up for the freedom of thought which
    they avoid".

  2. #2
    Join Date
    May 2002
    Location
    Atlanta,GA
    Posts
    262

    Re: Checking directories for files....

    Originally posted by avantos
    How can i open a directory to see what the file names are in the directory? Is it possible to just open the directory and when you (fin >>) you get the file names?


    Any help would be much appreciative.


    -Avantos
    Which operating system are you using?
    Jared

  3. #3
    Join Date
    May 2002
    Posts
    20
    Linux.


    Actually, I just ended up writting it in pearl.... it seems much easier for what I am trying todo.



    -Avantos
    "People demand freedom of speech to make up for the freedom of thought which
    they avoid".

  4. #4
    ANSI C, it must work under Linux I think, I was checking only under Windoze.
    _findfirst
    _findnext
    _findclose

  5. #5
    Join Date
    May 2002
    Posts
    20
    Awesome, thanks!

    That helps tremendously. Cause i got a perl script working...but being perl, it's hella slow. So doing this in C++ should speed it up a bit.
    "People demand freedom of speech to make up for the freedom of thought which
    they avoid".

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