How can we access directory thorough a c program?
Question is to write a program to find all the files with ext ‘.txt’ in a current directory.
so, How can we access a directory? or any hint …
How can we access directory thorough a c program?
Question is to write a program to find all the files with ext ‘.txt’ in a current directory.
so, How can we access a directory? or any hint …
EmbLogic Research & Competency Development Labs
Phone: +91 9818467776, 8527567776, 9650467776
Email: info@emblogic.com
Copyright © EmbLogic Embedded Technologies Pvt. Ltd.
Use header file dirent.h. Also you have to use opendir and readdir.
It’s working.
Thank you sir.