opening .txt from a directory

hi, im trying to open some .txt files from a directory but idont know how many files are there and i want to do it in a loop.
i have already used dirent.h library for a specified txt file but couldnt do it in a loop to read other txt files


closed account (48bpfSEw)
http://stackoverflow.com/questions/612097/how-can-i-get-the-list-of-files-in-a-directory-using-c-or-c

it was useful, thanks
Topic archived. No new replies allowed.