Hi all!
I want to get the list if the filenames in a specified directory. But I want it to work under UNIX and DOS too. How can I do this? Is there a common solution for this problem? Thanks
Hi all!
I want to get the list if the filenames in a specified directory. But I want it to work under UNIX and DOS too. How can I do this? Is there a common solution for this problem? Thanks
> Is there a common solution for this problem?
Not between UNIX and DOS there isn't
So you need to use conditional compilation to read directories in an OS specific fashion
If you restricted yourself to POSIX compliant operating systems (unix, linux, windows NT/2K, and some others), then dirent.h would be a standard feature