I've been given the following task:
1. Read some .h header files from a few different folder in different directories.
2. Extract only the functions in the files and store all of them into a single text file.
3. Repeat the step 1 and 2 again but extract info from different files and store them in
another different text file.
4. Compare the functions in the text files. (Both the function name and their parameters)
I'm using the function fopen() to open the file and have to specify the path for each of the file one by one (there are more than 200 files!). Is there any way for me to automatically browse through all the files in a specific folder then proceed to another? Some suggest me to include the "dirent.h" header but it show ""fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory".
The Step 2 i'm using string to read the char in the files and store them in string which are later on copy into a List.