I want to use input redirection to get directory name instead of a file.
for eg: program < directory_name; so that it reads all me files in the directory.
I am stuck with this in C..
Can anybody please help?????

You must post the code that you have done. You'll get no help if you don't show what you have done so far.
Tell us as well where did you get stuck. Don't dump just the code and expect someone to fix it for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.