comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey D. Cherry" <jdcherry@utech.net>
Subject: Re: Temporary files in Ada95.
Date: 1999/03/29
Date: 1999-03-29T00:00:00+00:00	[thread overview]
Message-ID: <36FFD831.AF11BA9C@utech.net> (raw)
In-Reply-To: 1999Mar26.164208.1@eisner

Larry Kilgallen wrote:

> So what happens if the user running the program does not have write
> access to the root directory of the current drive ?

Great question!!  I ran the executable on our NT machine (no one except
the Administrator has write permission for the root directory on any
partition) and got the following output:

raised ADA.IO_EXCEPTIONS.NAME_ERROR

Yuk!  Perhaps there is a way to get the GNAT compiler to use the system
TEMP directory for temporary files?  

Thanks for catching that problem in my code.  I guess it's always better
to be safe than sorry, so if I ever use a temporary file, I won't assume
it will be created safely.  Pardon me while I go slap my forehead and
say "duh".

Regards,
Jeff Cherry




  reply	other threads:[~1999-03-29  0:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-25  0:00 Temporary files in Ada95 jboulais
1999-03-26  0:00 ` Boulais, Jeffrey M
1999-03-26  0:00   ` Matthew Heaney
1999-03-26  0:00 ` Matthew Heaney
1999-03-26  0:00 ` Boulais, Jeffrey M
1999-03-26  0:00   ` Matthew Heaney
1999-03-26  0:00   ` Boulais, Jeffrey M
1999-04-02  0:00     ` Jerry van Dijk
1999-03-26  0:00   ` Jeffrey D. Cherry
1999-03-26  0:00     ` Larry Kilgallen
1999-03-29  0:00       ` Jeffrey D. Cherry [this message]
1999-03-31  0:00       ` Boulais, Jeffrey M
1999-03-31  0:00         ` Jeffrey D. Cherry
1999-03-31  0:00           ` Matthew Heaney
1999-03-31  0:00             ` Jeffrey D. Cherry
1999-04-01  0:00               ` John J Cupak Jr
1999-03-26  0:00 ` robert_dewar
replies disabled

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