comp.lang.ada
 help / color / mirror / Atom feed
From: dommo1234@my-deja.com
Subject: File Management query - LRM unclear
Date: 2000/02/07
Date: 2000-02-07T00:00:00+00:00	[thread overview]
Message-ID: <87n35g$uuo$1@nnrp1.deja.com> (raw)

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.




             reply	other threads:[~2000-02-07  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-07  0:00 dommo1234 [this message]
2000-02-07  0:00 ` File Management query - LRM unclear Ted Dennison
replies disabled

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