post  Searching files with a specific extension

ricardo schmidt (10)   Link to this post
Hello all!

I need to create a procedure that is a loop for searching files with a
specific extension.

For example, when starting the program, in the main function, it
enters in a loop for searching files with a specific extension. When
finding one, it calls a procedure that read this file and after
collecting its content, the file is deleted.

My problem is, I do not know how to access the directory (actually is
the same where my program is) and search for files with an extension
".inf", for example.

I appreciate any help :)

Thanks in advance,
Ricardo.
Duoas (2964)   Link to this post
This kind of question is asked often enough. And answered.
http://www.cplusplus.com/forum/unices/4239/
http://www.cplusplus.com/forum/unices/3548/

Good luck!
ricardo schmidt (10)   Link to this post
Thank you... it will surely help me :)

This topic is archived - New replies not allowed.