comp.lang.ada
 help / color / mirror / Atom feed
* Create-Delete tmp Files
@ 2000-03-17  0:00 Achim Gerhard
  2000-03-17  0:00 ` John J Cupak Jr
  2000-03-17  0:00 ` Robert Dewar
  0 siblings, 2 replies; 21+ messages in thread
From: Achim Gerhard @ 2000-03-17  0:00 UTC (permalink / raw)


Hi all,
is this 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;
The background is:
in an application I use a temporary file. First i create a (noname) file
and write some stuff into that file. After that, I want to read that
stuff. So, I'll open that file as In_File and read from the beginning
(reset...).
Finally I throw away that file (delete).
The main things Create/Reset/Delete are written in the code fragment
above.
I don't see anything illegal in this code, but the Ada runtime seems to
accumulate memory (for file handles?) until ... it throws in the towel.
Any comments?
Hope this will not lead into a discussion 'how2use tmp files' :-)
Regards,
Achim
--
_ _
/A/G


Sent via Deja.com http://www.deja.com/
Before you buy.




^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2000-03-24  0:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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-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               ` tmoran
2000-03-23  0:00               ` Robert Dewar
2000-03-24  0:00                 ` Achim Gerhard
2000-03-24  0:00                   ` Robert Dewar
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-17  0:00 ` Robert Dewar

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