Re: [Dev-C++] Search for file with an specific extension
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: hhh h. <the...@ho...> - 2008-09-24 19:59:55
|
You should try to read more. Even though, I'll give you a hint findfirst(), findnext(), findclose() For windows, http://msdn.microsoft.com/en-us/library/zyzxfzac(VS.80).aspx > Date: Wed, 24 Sep 2008 10:13:36 -0300 > From: sup...@gm... > To: dev...@li... > Subject: [Dev-C++] Search for file with an specific extension > > 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. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Confira vídeos com notícias do NY Times, gols direto do Lance, videocassetadas e muito mais no MSN Video! http://video.msn.com/?mkt=pt-br |