comp.lang.ada
 help / color / mirror / Atom feed
From: john@assen.demon.co.uk (John McCabe)
Subject: [Q] Ada.Text_IO.Is_Open query
Date: 1996/07/03
Date: 1996-07-03T00:00:00+00:00	[thread overview]
Message-ID: <836419225.18965.3@assen.demon.co.uk> (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>





             reply	other threads:[~1996-07-03  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-03  0:00 John McCabe [this message]
1996-07-06  0:00 ` [Q] Ada.Text_IO.Is_Open query John Herro
1996-07-06  0:00 ` Laurent Guerby
replies disabled

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