• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

C programming with directories and files

JC0133

Senior member
I have a curiosity question. Is there a way in the C programming language to navigate to different directories and find files?

Any ideas/advice on how to do this in Windows and Linux?
 
dirent.h is the header in the C POSIX library for the C programming language that contains constructs that facilitate directory traversing. The function is not part of the C standard, but is considered "pseudo-standard" and is usually portable between platforms.

Just to get you started:
http://www.thegeekstuff.com/2012/06/c-directory/

https://en.wikibooks.org/wiki/C_Programming/dirent.h

I got no experience programming for Windows. So I have no idea if dirent.h is actually usable on Windows or not. But you can try.
 
Back
Top