Hello everyone,
I'm new in C and would like to make a program which looks for all the files located in a given directory (with sub-directories) and stores the paths of the files inside a variable. My question is really simple, how can I create this kind of variable? I looked for that on many forums but they only explain how to store a single string characters. In my case, I can have up to 150000 string characters, one for each file. In Matlab, it's really simple, I will have for instance file_path{1} = 'C:\Test\art.mp3', file_path{2} = 'C:\Test\art_wave.mp3', etc... In other words, i would like to know how I can make a list of string characters in C.
Thank you for your help,
Andrew
Partager