comp.lang.ada
 help / color / mirror / Atom feed
From: Achim Gerhard <achim_g@my-deja.com>
Subject: Re: Create-Delete tmp Files
Date: 2000/03/20
Date: 2000-03-20T00:00:00+00:00	[thread overview]
Message-ID: <8b4n77$u4a$1@nnrp1.deja.com> (raw)
In-Reply-To: 8b0pla$aub$1@nnrp1.deja.com

In article <8b0pla$aub$1@nnrp1.deja.com>,
Robert Dewar <robert_dewar@my-deja.com> wrote:
> In article <38D27008.4055C0AB@res.raytheon.com>,
> John J Cupak Jr <John_J_Cupak@res.raytheon.com> 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.




  reply	other threads:[~2000-03-20  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-17  0:00 Create-Delete tmp Files Achim Gerhard
2000-03-17  0:00 ` John J Cupak Jr
2000-03-18  0:00   ` Robert Dewar
2000-03-20  0:00     ` Achim Gerhard [this message]
2000-03-20  0:00       ` Gautier
2000-03-20  0:00         ` Preben Randhol
2000-03-20  0:00           ` Gautier
2000-03-20  0:00             ` Preben Randhol
2000-03-20  0:00       ` tmoran
2000-03-21  0:00         ` Achim Gerhard
2000-03-21  0:00           ` Robert Dewar
2000-03-21  0:00           ` Roger Barnett
2000-03-23  0:00             ` Achim Gerhard
2000-03-23  0:00               ` Robert Dewar
2000-03-24  0:00                 ` Achim Gerhard
2000-03-24  0:00                   ` Robert Dewar
2000-03-23  0:00               ` tmoran
2000-03-20  0:00       ` Robert A Duff
2000-03-20  0:00         ` Achim Gerhard
2000-03-20  0:00           ` Robert A Duff
2000-03-17  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