How to know how many files are into a directory
- From: Antonio Maschio <tbin@xxxxxxxxx>
- Date: Sun, 19 Nov 2006 14:50:57 +0100
Hi, I need help. I want to read text files contained into a directory, but my program is unaware of how many files are contained into.
In bash there's something similar to (figure out)
for i in <dir> do
....
done
but I don't know how to do the same in C. Can you show me snippets of code?
-- Antonio
.
- Follow-Ups:
- Re: How to know how many files are into a directory
- From: Becker
- Re: How to know how many files are into a directory
- From: Flash Gordon
- Re: How to know how many files are into a directory
- From: Mark McIntyre
- Re: How to know how many files are into a directory
- From: santosh
- Re: How to know how many files are into a directory
- From: Richard Heathfield
- Re: How to know how many files are into a directory
- Prev by Date: Re: Overview
- Next by Date: Re: C-faq q13.20
- Previous by thread: strange call
- Next by thread: Re: How to know how many files are into a directory
- Index(es):