comp.lang.ada
 help / color / mirror / Atom feed
* [Q] Ada.Text_IO.Is_Open query
@ 1996-07-03  0:00 John McCabe
  1996-07-06  0:00 ` Laurent Guerby
  1996-07-06  0:00 ` John Herro
  0 siblings, 2 replies; 3+ messages in thread
From: John McCabe @ 1996-07-03  0:00 UTC (permalink / raw)



If I have defined an object of Ada.Text_IO.File_Type, say My_File, I
can use Ada.Text_IO.Is_Open to find out whether My_File is associated
with a physical file.

However, if I have a string say "autoexec.bat", is there a function
that will tell me if I have a file already open of that name (i.e. if
the physical file is associated with an object of type
Ada.Text_IO.File_Type - effectively the opposite of what
Ada.Text_IO.Is_Open does)?

I'd be grateful for any pointers, I originally thought that
Ada.Text_IO.Is_Open would do what I want until I got an error on
compilation, when I decided I should look at the RM! (don't have a lot
of text_io used on satellite instruments where I work)

I couldn't find what I wanted but maybe I was looking in the wrong
place!

Best Regards
John McCabe <john@assen.demon.co.uk>





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

end of thread, other threads:[~1996-07-06  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-03  0:00 [Q] Ada.Text_IO.Is_Open query John McCabe
1996-07-06  0:00 ` Laurent Guerby
1996-07-06  0:00 ` John Herro

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