From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6293800221dd683c,start X-Google-Attributes: gid103376,public From: john@assen.demon.co.uk (John McCabe) Subject: [Q] Ada.Text_IO.Is_Open query Date: 1996/07/03 Message-ID: <836419225.18965.3@assen.demon.co.uk>#1/1 X-Deja-AN: 163542284 x-nntp-posting-host: assen.demon.co.uk newsgroups: comp.lang.ada Date: 1996-07-03T00:00:00+00:00 List-Id: 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