EmbLogic's Blog

Low level file IO

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 …

2 Responses to Low level file IO

  1. msiddarth says:

    Use header file dirent.h. Also you have to use opendir and readdir.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>