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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a42a9e2a65b6a5c7 X-Google-Attributes: gid103376,public From: "Jeffrey D. Cherry" Subject: Re: Temporary files in Ada95. Date: 1999/03/29 Message-ID: <36FFD831.AF11BA9C@utech.net>#1/1 X-Deja-AN: 460460869 Content-Transfer-Encoding: 7bit References: <7dfrv7$gvv$1@nnrp1.dejanews.com> <7de1t6$usl$1@nnrp1.dejanews.com> <36FBB978.D44CF370@utech.net> <1999Mar26.164208.1@eisner> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 922736982 200 (none) 206.61.179.52 Organization: Logicon Geodynamics MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-03-29T00:00:00+00:00 List-Id: 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