Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > reading directory

Reply
Thread Tools

reading directory

 
 
Florian Liefers
Guest
Posts: n/a
 
      03-06-2004
"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
 
Reply With Quote
 
 
 
 
John Harrison
Guest
Posts: n/a
 
      03-06-2004

"Florian Liefers" <> wrote in message
news:c2d05l$h09$07$...
> "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


 
Reply With Quote
 
 
 
 
db
Guest
Posts: n/a
 
      03-06-2004
On Sat, 06 Mar 2004 18:01:41 +0100
Florian Liefers <> wrote:

> "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;
> }


www.boost.org

br
db
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
UnauthorizedAccessException when reading XML files (no problem when reading other file-types) blabla120@gmx.net ASP .Net 0 09-15-2006 02:08 PM
DVD ROM not reading DVDs but reading CDs sayeed.afzal@gmail.com Computer Information 0 05-22-2006 10:37 AM
ASP.NET Reading problem (reading .xls) Wael Soliman ASP .Net 2 01-03-2005 05:33 PM
reading the DB vs. reading a text file...performance preference? Darrel ASP .Net 3 11-11-2004 02:27 PM



Advertisments