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: John J Cupak Jr Subject: Re: Temporary files in Ada95. Date: 1999/04/01 Message-ID: <3703C24A.CA8B1A87@res.raytheon.com>#1/1 X-Deja-AN: 461678990 References: <36FFD831.AF11BA9C@utech.net> <7dfrv7$gvv$1@nnrp1.dejanews.com> <7de1t6$usl$1@nnrp1.dejanews.com> <36FBB978.D44CF370@utech.net> <1999Mar26.164208.1@eisner> <37026630.D6B9207C@utech.net> <37029918.F637F494@utech.net> To: "Jeffrey D. Cherry" Content-Type: multipart/mixed; boundary="------------127EAC3951706F820EDC9130" X-Complaints-To: usenet@swl.msd.ray.com X-Trace: swlmail.msd.ray.com 922993231 30407 138.127.111.45 (1 Apr 1999 19:00:31 GMT) Organization: Raytheon Systems Company Mime-Version: 1.0 NNTP-Posting-Date: 1 Apr 1999 19:00:31 GMT Newsgroups: comp.lang.ada Date: 1999-04-01T19:00:31+00:00 List-Id: This is a multi-part message in MIME format. --------------127EAC3951706F820EDC9130 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Jeff and group... Here's the Ada code I used to illustrate printing a file and deleting it after close on the DEC system: with Text_IO; procedure Send_To_Printer is Printer : Text_IO.File_Type; begin Text_IO.Create(File => Printer, Mode => Text_IO.Out_File, Name => "Print.dat", Form => "FILE;" & "PRINT_ON_CLOSE YES;" & "DELETE_ON_CLOSE YES;"); Text_IO.Put_Line(Printer, "And away-y-y-y we go-o-o-o-!"); Text_IO.Close(Printer); end Send_To_Printer; Hope this helps! Yours in Ada! John J Cupak, Jr., CCP Jeffrey D. Cherry wrote: > >> I don't think you want to ask "Is there a way to make ada not write > >> temporary files to the root directory?" since it's not really a language > >> issue. I view it as an implementation issue. > > > The Form parameter is usually used for this kind of thing. > > Although, if memory serves, this is correct for VMS, in general I would > have to say that I haven't found that to be true. I've found the Form > parameter to be used for specialized file access, security requests, and > the like. Not to force the file to be temporary. If you could, please > provide some examples of compiler/OS pairings that create temporary > files using the Form parameter. I would appreciate it since that's why > I read CLA ... to learn new things. Thanks in advance. :) > > >> I would have thought that GNAT would create the temporary file in a > >> directory where the user has write access. > > > Is there a Form parameter for GNAT, to specify where the temporary file > > gets declared? > > I'd have to check the GNAT documentation and the GCC documentation but I > believe the only Form parameter accepted under any of the Windows > systems is "shared=yes" or "shared=no", or, of course, a null string. --------------127EAC3951706F820EDC9130 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for John J Cupak Jr Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: John J Cupak Jr n: Cupak Jr;John J org: Raytheon Systems Company adr: 50 Apple Hill Road;;T3MN35;Tewksbury;MA;01876;USA email;internet: John_J_Cupak@res.raytheon.com title: Software Engineering Instructor tel;work: 978.858.1222 tel;fax: 978.858.4336 x-mozilla-cpt: ;0 x-mozilla-html: TRUE version: 2.1 end: vcard --------------127EAC3951706F820EDC9130--