--- In [email protected], Thomas Hruska <[EMAIL PROTECTED]> wrote:
>
> Tim wrote:
> > I need to import a list of files and some of their
> > attributes into an excel spread sheet. I know I can
> > write the data to a file and delimit it so that excel
> > can read it, but I don't know how to go about getting 
> > the list of files from the folder on the c-drive.
> > 
> > Can someone give me some advice, please?
> > 
> > Thank you.
> 
> opendir(), readdir(), closedir().

That need not necessarily work, depending on the compiler. Tim was
asking about a Windows environment, and many Windows compilers do not
support the opendir() family of functions (regrettably).

Tim, if you work with MinGW, you can use these functions; otherwise I
suggest you have a look at FindFirst() and FindNext().

Regards,
Nico

Reply via email to