Directory access

W

web02

Hi y'all,

It has been a long time and suddenly, I have a VC98 compiler with which I
need to determine all the files in a directory and its subdirectories. I
forget the functions available for doing this. I keep tripping over .NET in
WEB searches. Can anyone provide me with a list of the functions to perform
this.

Thanx,
Bill
 
J

Jerry Coffin

web02 said:
Hi y'all,

It has been a long time and suddenly, I have a VC98 compiler with which I
need to determine all the files in a directory and its subdirectories. I
forget the functions available for doing this. I keep tripping over .NET in
WEB searches. Can anyone provide me with a list of the functions to perform
this.

It's offtopic here, but if you ask about FindFirstFile, FindNextFile
and FindClose someplace like comp.os.ms-windows.programmer.win32, they
should be able to get you started in the right direction.
 
D

Dietmar Kuehl

web02 said:
It has been a long time and suddenly, I have a VC98 compiler with which I
need to determine all the files in a directory and its subdirectories. I
forget the functions available for doing this.

Boost's file system library has a C++ way to access the files in a
directory, i.e. a proper iterator for the directory entries. This
library was proposed for inclusion in the C++ committee's TR2
(the second technical report on standard C++ library extensions)
and thus has a fair chance to become part of standard C++ at some
point in the future.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top