From: Stefan DOT Simbuerger AT physik DOT uni-regensburg DOT de (Stefan Simbuerger t2002) Newsgroups: comp.os.msdos.djgpp Subject: Re: findfirst(), findnext() Date: 02 Oct 1996 07:19:34 GMT Organization: Universitaet Regensburg Lines: 26 Message-ID: References: <1 DOT 5 DOT 4 DOT 32 DOT 19961002042510 DOT 0070da88 AT mail DOT interlog DOT com> NNTP-Posting-Host: rphs38.physik.uni-regensburg.de In-reply-to: Farhan Yousaf's message of Wed, 2 Oct 1996 04:25:10 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Farhan Yousaf writes: RE> No matter, how many files I seem to have, findnext only reports RE> 1 and breaks out of the loop: RE> findfirst(...); RE> while (!done) { done = findnext(...); } RE> Am I at fault here? This is in CPP, BTW. Where do you initialise the variable done? Normally, you should have a done = findfirst(...); instead of just findfirst(...); -- Stefan Simbuerger Tel: +49 941 943 2002 Universitaet Regensburg Fax: +49 941 943 3887 e-mail: Stefan DOT Simbuerger AT physik DOT uni-regensburg DOT de --------------------------------------------------