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=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no 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-22 10:24:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!not-for-mail From: "Frank J. Lhota" Newsgroups: comp.lang.ada Subject: Re: if file exist Date: Sun, 22 Sep 2002 13:24:09 -0400 Message-ID: References: Reply-To: "Frank J. Lhota" X-Trace: UmFuZG9tSVZWmeGjBWfarz1ZFNmF+eSA2exNviT9NEdobGEh2xlGolX/ho8Stdx8 X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 22 Sep 2002 17:23:56 GMT X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Priority: 3 X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MSMail-Priority: Normal Xref: archiver1.google.com comp.lang.ada:29258 Date: 2002-09-22T17:23:56+00:00 List-Id: "Simon Wright" wrote in message news:x7vd6r6rskf.fsf@pushface.org... > Dale Stanbrough writes: > > > Ask the operating system? Another way is to attempt to open > > the file. If it opens successfully then it exists. > > 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. Absolutely true. There is a proposal for a directory I/O package for inclusion in Ada 0x, and that would be the ideal solution.