Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 8th, 2005, 12:15 PM   #1
najdorf
Newbie
 
Join Date: Jun 2005
Posts: 1
Rep Power: 0 najdorf is on a distinguished road
c & linux

am working on a C code,
i have client and server
client sends "list <foldername>"
server needs to copy the files in the folder to a string.
so that i can send that string back to the client.
i heard there is a function to handle this, do you know?
thanks
najdorf is offline   Reply With Quote
Old Jun 8th, 2005, 12:19 PM   #2
Scorpions4ever
Programmer
 
Join Date: Jun 2005
Posts: 86
Rep Power: 4 Scorpions4ever is on a distinguished road
This is OS dependant. Look into opendir(), readdir() and closedir(), if on *nix. Look into FindFirstFile(), FindNextFile() and FindClose(), if on Windows.
Scorpions4ever is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:00 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC