From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6482d0ae6dcb1b4c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-23 04:38:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!crtntx1-snh1.gtei.net!chcgil2-snf1.gtei.net!news.gtei.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: if file exist Date: 23 Sep 2002 06:38:22 -0600 Organization: LJK Software Message-ID: References: NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1032779605 22467 192.135.80.34 (23 Sep 2002 11:13:25 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 23 Sep 2002 11:13:25 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:29273 Date: 2002-09-23T06:38:22-06:00 List-Id: In article , Simon Wright writes: > Dale Stanbrough writes: > >> Simon Wright wrote: >> >> > and is readable (assuning you tried to open it for read!). It might >> > exist and not be readable, in which case this test would fail. >> >> No, my test will succeed in that -if- it exists, and -if- it >> opens successfully, then it does exist. >> I said nothing about other conditions. > > No, but you introduced the feature that the file must be readable; > which was not in the original poster's requirements. On some operating systems the existence of a file for which the user lacks read permission cannot be detected. A general solution for detecting unreadable files is not possible.