i need a simple code(i'm a beginner) to read all the files in a folder for a windows platform using c
i need a simple code(i'm a beginner) to read all the files in a folder for a windows platform using c
First... the C standard does not include directory search functions, because they are specific to operating systems and file systems. But you should check your compiler's documentation for extension functions. (And don't listen to the palaver about "standards" and "portability" this will draw as there's nothing portable about any of this.)
The "Windows way" of searching directories uses two functions... FindFirstFile() and FindNextFile() ... it's a bit complex for a beginner but there are plenty of examples floating around...
If you get stuck, post your code and I'll try to give you a hand....