From: mad AT intersurf DOT com (Mike Demoulin) Newsgroups: comp.os.msdos.djgpp Subject: Re: What is the canonical way to find out if a file exists (in g++)? References: <850gep$epu$1 AT news DOT chorus DOT net> Message-ID: User-Agent: slrn/0.9.5.7 (Windows) Lines: 16 Date: Wed, 05 Jan 2000 22:50:37 GMT NNTP-Posting-Host: 216.115.146.142 X-Complaints-To: news AT intersurf DOT net X-Trace: dim.intersurf.net 947112637 216.115.146.142 (Wed, 05 Jan 2000 16:50:37 CST) NNTP-Posting-Date: Wed, 05 Jan 2000 16:50:37 CST Organization: Intersurf Online, Inc. To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 5 Jan 2000 16:25:53 -0600, Joe Hagen wrote: >Mike, > > Actually, none of these cases will find the file, since it >exceeds the 8.3 DOS filename limit. Is there any way that I can find files with long file names? I tried findfirst (), which is supposed to work with long file names, with no joy. > There's a typo in the code that outputs the same expression >for either case for the cout call when you checked using >_file_exists(). Thanks, that might explain why __file_exists () was reported as finding the file.