"Umesh" wrote:
How to take all the text files in a directory as input? I want to open
all the files in a directory and process them.
Otherwise, I need to open all the files in the directory individaully
which is a tedious job. Please guide. Thanks.
You will have to use operating system facilities to do that, since C doesn't
even acknowledge the existence of directories. So find a new news group and
post your question there. When you post, I suggest you ask *one* clear
question, not two as you do above. "all text files" and "open all the
files" do not mean the same thing. It is what we call, in English,
_ambiguous_, a word you should become familiar with.
Here is one group that might help, but there are many other candidates too.
If you scan this and similar groups, via. Google groups, the answer has
almost certainly been given, probably several times. There might even be a
FAQ for some of these groups that answer your question.
comp.os.msdos.programmer