From: Laurence Withers Newsgroups: comp.os.msdos.djgpp Subject: Portable way to examine a directory? Date: Sat, 11 Jul 1998 18:09:16 +0100 Organization: Integrated Peripherals Message-ID: NNTP-Posting-Host: lwithers.demon.co.uk MIME-Version: 1.0 Lines: 17 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi, I'm working on a project which needs to examine a directory. Specifically, I have the directory name and I want to search for all files ending *.olf, and I also want to search for all subdirectories. Using C++, I can do this in DOS and with Allegro (foreachfile() or whatever it is), but neither method is portable. I would like to port the project to many platforms. Is there any standard way of doing this that DJGPP supports, or am I better off leaving this piece of code to be implementation specific? Well, thanks very much for your time + help, and bye for now, -- Laurence Withers, mailto:lwithers AT lwithers DOT demon DOT co DOT uk OPES homepage: http://www.lwithers.demon.co.uk/opes/