traverse a directory and list all file names?

This is a discussion on traverse a directory and list all file names? within the C Programming forums, part of the General Programming Boards category; Hello everyone, Are there any samples to traverse a directory and list all the file names? Written in C. thanks ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    traverse a directory and list all file names?

    Hello everyone,


    Are there any samples to traverse a directory and list all the file names? Written in C.


    thanks in advance,
    George

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You mean like the one in the FAQ? Or the one that gets answered every week when someone asks again?


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,048
    The FAQ mentioned is here: http://faq.cprogramming.com/cgi-bin/...&id=1044780608

    Written in C.
    Well, it wouldn't be standard C. You can't do something like that in standard C.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #4
    Gawking at stupidity
    Join Date
    Jul 2004
    Location
    Oregon, USA
    Posts
    3,175
    Quote Originally Posted by quzah
    You mean like the one in the FAQ? Or the one that gets answered every week when someone asks again?


    Quzah.
    The former...no, wait. The latter. OH GOD! Let me choose both!
    If you understand what you're doing, you're not learning anything.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Following CTools
    By EstateMatt in forum C Programming
    Replies: 5
    Last Post: 06-26-2008, 11:10 AM
  2. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 08:54 AM
  3. singly linked circular list
    By DarkDot in forum C++ Programming
    Replies: 0
    Last Post: 04-24-2007, 09:55 PM
  4. Adding directory/file names to a linked list
    By thoseion in forum C Programming
    Replies: 13
    Last Post: 12-08-2006, 01:13 PM
  5. Help Required!!!!!
    By bobthebullet990 in forum C Programming
    Replies: 14
    Last Post: 11-27-2005, 03:56 PM

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