Date: Tue, 27 Apr 1999 10:31:35 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: FireFoX McLouD cc: djgpp AT delorie DOT com Subject: Re: CGI search... In-Reply-To: <3725100A.670B678@cryogen.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 26 Apr 1999, FireFoX McLouD wrote: > I'm trying to make a CGI application that search a directory in my > webserver (WindowsNT), and look for a key word in every html doc. is > there some "FindNext", that allow me to find a .html doc and open it, > without know the file name? DJGPP has `findfirst' and `findnext', look them up in the library reference doc (type "info libc alpha findfirst" from the command line). If you want the program to be portable, it's better to use `opendir' and `readdir' (and maybe `fnmatch'). Note that on NT, DJGPP programs cannot see long file names, so you will need to look for *.htm, not *.html.