Listing directory contents using C and Windows
问题 I\'m looking to list and store the contents of a directory in a struct using C on Windows. I\'m not necessarily looking for anyone to write out the code I\'m looking for, rather point me in the right direction when it comes to which library I should be looking at. I\'ve been Googling for a few hours now and all I\'m finding is C#, C++ solutions so any help would be greatly appreciated. 回答1: Just like everyone else said (with FindFirstFile, FindNextFile and FindClose)... but with recursion!