0

I'm fairly new to C. I've tried googling but haven't found anything. Can anyone direct me to some relevant functions or readings or whatever that might help with this problem? Basically I need to be able to give a directory as an argument and it needs to be able to count the number of files and directories. Not sure where to start.

Thanks in advance for any help!

2
Contributors
1
Reply
3
Views
6 Years
Discussion Span
Last Post by griswolf
0

You start by reading the manual/text. Then you try writing some code. Maybe take a look around the net with Google. Maybe actually use the search facility at Daniweb (look in the top right corner). I got on hit at Daniweb about 30 or so from the top of a search list directory in C (It didn't limit the search to the C forum, though) and another at stack overflow (always a good resource for programming issues) via Google as the forth hit. Daniweb was third.

After you've got some code written, then if you can't get it working, or working right, you come here and post a question. Use the CODE button when you post your question with your code.

Edited by happygeek: fixed formatting

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.