Article View: borland.public.cppbuilder.nativeapi
Article #10400Re: FileExists() is using wildcards
From: Hans Galema
Date: Tue, 27 Apr 2004 16:33
Date: Tue, 27 Apr 2004 16:33
19 lines
1901 bytes
1901 bytes
Remy Lebeau (TeamB) wrote: >>Heee. There is nothing buggy in my code that generates >>the filename. It nicely places '?'s on occasions. > > I would consider it buggy if it were producing a filename that you expected > to have a particular behavior but actually had a different undesirable > behavior instead. There were no expectations concerning the behavour of the filename. I had expectations about FileExist(). FileExists does not behave as what the name indicates. The use of FileExists on a filename that could contain a wildcard was an unlucky choice. But then, who will I blame ? And now that I know, I better use a real file-exists function. Hans.
Technical Details
Message-ID:
<408e89c1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<408d6cad$1@newsgroups.borland.com> <408d8056$1@newsgroups.borland.com> <408e0d6a$1@newsgroups.borland.com> <408e1c4a$1@newsgroups.borland.com> <408e2856$1@newsgroups.borland.com> <408e7db0$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,8374fb71f8a662f4 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-04-27 09:29:35 PST Date: Tue, 27 Apr 2004 18:33:33 +0200 From: Hans Galema <dontusethis@dontusethis.nl> User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: FileExists() is using wildcards References: <408d6cad$1@newsgroups.borland.com> <408d8056$1@newsgroups.borland.com> <408e0d6a$1@newsgroups.borland.com> <408e1c4a$1@newsgroups.borland.com> <408e2856$1@newsgroups.borland.com> <408e7db0$1@newsgroups.borland.com> In-Reply-To: <408e7db0$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 129.125.202.241 Message-ID: <408e89c1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1083083201 129.125.202.241 (27 Apr 2004 09:26:41 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail