reading directory

  • Thread starter Florian Liefers
  • Start date
F

Florian Liefers

"Hello world\n",

how can get a list of files/directories from a specified directory?
something like

FILE *fp=fopen("directory")
while (...) {
file=....;
cout << file << endl;
}


Tnx,
Florian
 
J

John Harrison

Florian Liefers said:
"Hello world\n",

how can get a list of files/directories from a specified directory?
something like

FILE *fp=fopen("directory")
while (...) {
file=....;
cout << file << endl;
}


Tnx,
Florian

Standard C++ has no support for directories. You need to ask this question
again on a group that supports whatever platform you are using.

Have a look at the comp.lang.c++ welcome page for suggestions
http://www.slack.net/~shiva/welcome.txt

john
 

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

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top