September 8th, 2003, 02:49 AM
file structure in c
do you know how to read file structure using C
I want to read current directory file and folder
I've read the help but found nothing
September 8th, 2003, 09:22 AM
This is operating system specific. In Windows/DOS you can use FindFirstFile, FindNextFile, and the like. On POSIX compliant systems you can use opendir, readdir, and closedir. Look up your documentation to see which of these you have.
September 10th, 2003, 01:49 PM
I finally can solve my problem
but there's another problem
how can you detect drives in computer using C
every computer has different drive letters.
September 10th, 2003, 02:45 PM
The C language hasn't a clue about your disk drives or drive letters. You need to look at your OS's API for dealing with things like that.
September 11th, 2003, 10:43 AM
I found the answer already
I can use setdisk();
doing a check from drive A to Z