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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a321e2ada8a9e4d4,start X-Google-Attributes: gid103376,public From: dommo1234@my-deja.com Subject: File Management query - LRM unclear Date: 2000/02/07 Message-ID: <87n35g$uuo$1@nnrp1.deja.com>#1/1 X-Deja-AN: 582729757 X-Http-Proxy: 1.1 x35.deja.com:80 (Squid/1.1.22) for client 194.202.27.82 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Feb 07 18:33:20 2000 GMT X-MyDeja-Info: XMYDJUIDdommo1234 Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt) Date: 2000-02-07T00:00:00+00:00 List-Id: Hi all, I wonder if someone could please clear something up for me. I want to use the 'Delete(..)' primitive to remove a file on my local filesystem. This requires that the file is open. I'm writing a delete procedure that takes a string specifying the pathname of the file for deletion. I have defined a package that provides functionality for opening a file and holding information about it, including the File_Type instance returned when the file is opened. Now, when *my* delete procedure is called, I envoke the (my) function that attempts to open the file, in order to obtain the File_Type instance required to call the Ada library's Delete(..) primitive. Now comes the query. If the external- file is already open, the exception 'Status_Error' gets thrown. That *is* clear (LRM A.8.2[8]), but what isn't clear, is whether or not the File_Type instance associated with the already-open external file is supposed to be returned in the first (in/out) parameter of the Delete primitive. If not, how can I obtain it, in order that I may actually delete the file? I hope the explanation is clear enough - if not pls ask me to clarify. Thanks, Dom. Sent via Deja.com http://www.deja.com/ Before you buy.