C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

reading directory

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Florian Liefers
Guest





PostPosted: Sat Mar 06, 2004 5:01 pm    Post subject: reading directory Reply with quote



"Hello worldn",

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
Back to top
John Harrison
Guest





PostPosted: Sat Mar 06, 2004 5:10 pm    Post subject: Re: reading directory Reply with quote




"Florian Liefers" <news (AT) isource (DOT) de> wrote

Quote:
"Hello worldn",

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



Back to top
db
Guest





PostPosted: Sat Mar 06, 2004 11:09 pm    Post subject: Re: reading directory Reply with quote



On Sat, 06 Mar 2004 18:01:41 +0100
Florian Liefers <news (AT) isource (DOT) de> wrote:

Quote:
"Hello worldn",

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

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

www.boost.org

br
db

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.