GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 31-May-2006, 09:53
philkills philkills is offline
New Member
 
Join Date: May 2006
Posts: 2
philkills is on a distinguished road

Retrieving all filename from a particular directory


hi guys,

Basically all i need to do is retrieve all filenames from a particular directory, the filenames could be stored in an array of char arrays... unless there is a more efficient way?

Anyways, i have searched the web and i couldn't find anything really relevant. I just need to load all the filenames from 1 directory for batch file processing(converting animation files to bmp format for editing).

I would post my code for doing this.... but i do not think its really relevant in this situation.

thanx in advance

-philkills
  #2  
Old 31-May-2006, 11:00
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: Retrieving all filename from a particular directory


Quote:
Originally Posted by philkills
Basically all i need to do is retrieve all filenames from a particular directory, the filenames could be stored in an array of char arrays... unless there is a more efficient way?

Anyways, i have searched the web and i couldn't find anything really relevant.
Your compiler documentation is where you find this information.


Quote:
Originally Posted by philkills
I would post my code for doing this.... but i do not think its really relevant in this situation.
Maybe not, but the compiler and system is relevant, as the Guidelines specify in #2E. Each compiler has a different way of doing this.
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
  #3  
Old 31-May-2006, 11:14
philkills philkills is offline
New Member
 
Join Date: May 2006
Posts: 2
philkills is on a distinguished road

Re: Retrieving all filename from a particular directory


compiler VC++ 6.0
  #4  
Old 31-May-2006, 12:10
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,258
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: Retrieving all filename from a particular directory


Look up FindFirst() and FindNext()
__________________

Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough.
-- Pearl Williams
 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 4) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using stat.h and listing directory contents... smoothdogg00 C Programming Language 9 14-Mar-2006 23:58
pointer to a directory entry Dream86 C Programming Language 2 11-Sep-2005 23:58
fltk-2.0 cvs Plumb FLTK Forum 20 13-Nov-2004 08:10
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 07:19
Can't view pages from another machine on the Intranet aevans Apache Web Server Forum 9 14-May-2004 03:26

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 16:14.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.