Mac Going through a directory in C

farmerdoug

macrumors 6502a
Original poster
Sep 16, 2008
541
0
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.