Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!uunet!mcsun!ukc!tcdcs!wsl!john From: john@wsl.UUCP (John Allen on wsl) Newsgroups: comp.lang.pascal Subject: Re: FindFile & FindNext problems with TP 5.x Summary: What exactly is this code supposed to do and what is it that is it doing wrong Keywords: grrr Message-ID: <278@wsl.UUCP> Date: 15 Nov 89 23:33:59 GMT Article-I.D.: wsl.278 References: <2961@iitmax.IIT.EDU> <1989Nov14.073404.10271@cs.eur.nl> Organization: Workhorse Systems Limited, Dublin, Republic of Ireland Lines: 19 In article <1989Nov14.073404.10271@cs.eur.nl>, reino@cs.eur.nl (Reino de Boer) writes: > bundalo@iitmax.IIT.EDU (Predrag S. Bundalo) writes: > > > I'm writing a program that needs to make two calls to > > FINDFILE. The first time, I need to get the names of > > all of the subdirectories in the current directory and > > store that somewhere (stack). The next time, I need > > to find all of the files (in the current directory) > > that match a given pattern (paramstr(1)). > I presume that you want to scan an entire directory tree, searching for files that match a particular file spec. If this assumption is correct then you taking a slightly wrong approach. If this is what you want, then I will send you complete source for a program which does this. The code is in 'C', but it is fundamentally the same as in PASCAL. (I use TurboC & TurboPascal all the time).