Hi..
Is it possible for me to display all files in my hdd using C?
If so, what library or function that should I use to display the volume partition?
Hi..
Is it possible for me to display all files in my hdd using C?
If so, what library or function that should I use to display the volume partition?
Which operating system?
Because disk structures vary from OS to OS, usually you will be calling an OS based function to get directory information.
In Windows you're looking for FindFirst(), FindNext(), and FindClose().
I have no idea what you might need on MAC or Linux....
I am using Windows..
Ok head on over and check this link....
FindFirstFile Function (Windows)
MSDN is the full documentation of the Windows API, tons of fun stuff...
Of course there are also C add-on libraries for the purpose. Pelles C, my choice, comes with a particularly good file and directory library.
Thanks for the suggestion.. I never know about Pelles C before..
Gonna test it.