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-Thread: 103376,c72c8726f7de6c9b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!wns14feed!worldnet.att.net!209.244.4.230!newsfeed1.dallas1.level3.net!news.level3.com!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: File manipulations in Ada.Text_IO Date: 1 Aug 2005 14:32:56 -0500 Organization: LJK Software Message-ID: <67kFmodka+Zb@eisner.encompasserve.org> References: <1122919474.611248.151950@z14g2000cwz.googlegroups.com> <42ee677a$0$11756$9b4e6d93@newsread4.arcor-online.net> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1122924754 16540 192.135.80.34 (1 Aug 2005 19:32:34 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 1 Aug 2005 19:32:34 +0000 (UTC) Xref: g2news1.google.com comp.lang.ada:3881 Date: 2005-08-01T14:32:56-05:00 List-Id: In article , Jeffrey Carter writes: > Georg Bauhaus wrote: >> >> One way using standard Ada is an attempt to open the file. >> If the external file doesn't exist, exception Name_Error >> is raised. > > Ada 0X will have Ada.Directories as part of the standard library, which > will include such a function. But such a function for a non-wildcarded filename is always going to be susceptible to a race condition if the next step would be to open the file. The file might be deleted or created between the test and using the information gained from the test.