comp.lang.ada
 help / color / mirror / Atom feed
From: Kilgallen@SpamCop.net (Larry Kilgallen)
Subject: Re: File manipulations in Ada.Text_IO
Date: 1 Aug 2005 14:32:56 -0500
Date: 2005-08-01T14:32:56-05:00	[thread overview]
Message-ID: <67kFmodka+Zb@eisner.encompasserve.org> (raw)
In-Reply-To: wauHe.7071$0C.1043@newsread3.news.pas.earthlink.net

In article <wauHe.7071$0C.1043@newsread3.news.pas.earthlink.net>, Jeffrey Carter <spam@spam.com> 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.



  reply	other threads:[~2005-08-01 19:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-01 18:04 File manipulations in Ada.Text_IO Zheng Wang
2005-08-01 18:18 ` Georg Bauhaus
2005-08-01 18:51   ` Jeffrey Carter
2005-08-01 19:32     ` Larry Kilgallen [this message]
2005-08-01 21:12       ` Randy Brukardt
2005-08-02 12:31         ` Larry Kilgallen
2005-08-02  2:34       ` Jeffrey Carter
2005-08-08 22:25         ` Robert A Duff
2005-08-09  2:46           ` Jeffrey Carter
2005-08-02 20:18 ` Gautier Write-only
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox