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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dc393c3a10696107 X-Google-Attributes: gid103376,public From: Achim Gerhard Subject: Re: Create-Delete tmp Files Date: 2000/03/20 Message-ID: <8b4n77$u4a$1@nnrp1.deja.com>#1/1 X-Deja-AN: 599843347 References: <8at7g0$bhc$1@nnrp1.deja.com> <38D27008.4055C0AB@res.raytheon.com> <8b0pla$aub$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x23.deja.com:80 (Squid/1.1.22) for client 195.243.118.226 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Mar 20 08:24:16 2000 GMT X-MyDeja-Info: XMYDJUIDachim_g Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.7 [en] (WinNT; I) Date: 2000-03-20T00:00:00+00:00 List-Id: In article <8b0pla$aub$1@nnrp1.deja.com>, Robert Dewar wrote: > In article <38D27008.4055C0AB@res.raytheon.com>, > John J Cupak Jr wrote: > > > > Achim, > > > > If you create a file without specifying the name, Ada is > supposed to create > > a temporary > > file which is "automagically" deleted on close. You shouldn't > need the > > Delete call. > > > > Hope this helps. > > John > > No, that does not help at all, his problem has nothing at all > to do with whether or not the file gets deleted! John , Robert, My intention is to create a 'temporary' file, write something into that file, then read from that file, and finally delete the 'temporary' file. And I want to do that periodically - 24h a day, 7 days a week ... The question is: is these legal Ada code? loop Text_IO.Create ( File => the_file, Mode => Text_IO.OUT_File ); Text_IO.Reset ( File => the_file, Mode => Text_IO.IN_File ); Text_IO.Delete ( File => the_file ); end loop; And the question behind that is: Why does this code cause the Ada runtime to accumulate memory? For me, at this time, it doesn't matter what compiler and machine. The question is not: What are the alternatives/better solutions to do this. ;-) Regards, Achim > > Sent via Deja.com http://www.deja.com/ > Before you buy. > -- _ _ /A/G -- _ _ /A/G Sent via Deja.com http://www.deja.com/ Before you buy.