Listing directory & MSDOS...

Hi I was wondering if anybody knew how to get a list of the directory or to check if exist any files in MSDOS. I’m using Borland C++ 3.1 in this moment.

To create a file with directory’s info I can do this “system("dir *.* > archivo.txt")” but I can’t do this because I haven’t write permission. I need to have this information at memory to process it.

Excuses my poor English.
Thank you.
Topic archived. No new replies allowed.