Going through a directory in C

Discussion in 'Mac Programming' started by farmerdoug, Sep 16, 2008.

  1. macrumors 6502a

    Joined:
    Sep 16, 2008
    #1
    I want to perform the same set of operations on every file in a directory. How do I go through the files in a directory one at a time if I don't know the names or numbers of files in the directory? I know I can use system commands to make a list and then read the list one at a time but Microsoft C used to have routines that would take care of everything for you.
     
  2. macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #2
  3. Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
  4. thread starter macrumors 6502a

    Joined:
    Sep 16, 2008

Share This Page