Raised This Month: $ Target: $400
 0% 

get Filelist of a directory


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TFTomSun
Junior Member
Join Date: Aug 2005
Old 08-26-2005 , 09:24   get Filelist of a directory
Reply With Quote #1

hi...

how can i get a filelist /read the filenames of a directory


thank you, TFTS
TFTomSun is offline
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 08-26-2005 , 11:40  
Reply With Quote #2

Code:
#define MAX_FILES 100 new szDir = "directory/path/"; //... new szFiles[MAX_FILES][75], FileCount = 0; new DirH = open_dir(szDir,szFiles[FileCount],74); while(next_file(DirH,szFiles[++FileCount],74) ) {   if(FileCount == MAX_FILES) break;  } //All the files will be stored into szFiles as a two-dimensional array.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
TFTomSun
Junior Member
Join Date: Aug 2005
Old 08-26-2005 , 13:45  
Reply With Quote #3

thank you
TFTomSun is offline
Reply


Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 14:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode