[Dev-C++] Search for file with an specific extension
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Ricardo S. <sup...@gm...> - 2008-09-24 13:13:42
|
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. |