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 Achim Gerhard wrote: > 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.