comp.lang.ada
 help / color / mirror / Atom feed
From: "Martin Dowie" <martin.dowie@btopenworld.com>
Subject: Re: socket, pipe
Date: Wed, 5 Nov 2003 20:18:57 +0000 (UTC)
Date: 2003-11-05T20:18:57+00:00	[thread overview]
Message-ID: <boblvh$bqs$1@sparta.btinternet.com> (raw)
In-Reply-To: 56a4b188.0311050545.77dc9cdf@posting.google.com

"ghostie" <eieio@coastalnet.com> wrote in message
news:56a4b188.0311050545.77dc9cdf@posting.google.com...
> Thanks for all the help.
> What I've decided to try is to have one application write a file to
> disk, and the other application will read the file from the disk.  I
> want the file to be written and closed by the first app before the
> other app tries to read it.  A method I've seen done before for this
> uses two separate directories; after a file is ready to read, its
> filename gets placed in a separate directory as a zero-length file.
> So, if you find a file name in this 2nd directory, you know that same
> filename is ready for you to read in the 1st directory.
>
> So the next thing I'm stuck on is how to do a directory listing from
> Ada.  I guess either calling a system call or if there's actually an
> Ada call for this, but I need to be able to use the results in order
> to know what files are in a directory.

The "Ada.Directories" package is being added for the next revision
(nearly...).
You can pick up a version of this at my web site (using an "Ada0Y" root). It
was developed on WinXP and has also been tested on WinNT. It should do
all you need.

www.martin.dowie.btinternet.co.uk

-- Martin





  parent reply	other threads:[~2003-11-05 20:18 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-04 14:45 socket, pipe ghostie
2003-11-04 15:14 ` Ole-Hjalmar Kristensen
2003-11-04 15:33 ` Marius Amado Alves
2003-11-04 17:45   ` Warren W. Gay VE3WWG
2003-11-04 18:48 ` John Woodruff
2003-11-05  3:27 ` Steve
2003-11-05  5:24   ` tmoran
2003-11-05  9:44 ` Pascal Obry
2003-11-05 12:31 ` Marin David Condic
2003-11-05 14:50   ` Steve
2003-11-05 15:19   ` Steve
2003-11-05 13:45 ` ghostie
2003-11-05 18:54   ` ghostie
2003-11-05 20:41     ` Robert Spooner
2003-11-05 20:18   ` Martin Dowie [this message]
2003-11-05 20:23     ` Martin Dowie
2003-11-05 13:54 ` ghostie
2003-11-05 14:26   ` Marius Amado Alves
2003-11-05 23:55   ` Jacob Sparre Andersen
  -- strict thread matches above, loose matches on Subject: below --
2003-11-05 18:49 Beard, Frank Randolph CIV
2003-11-05 19:43 Beard, Frank Randolph CIV
2003-11-05 21:14 ` tmoran
replies disabled

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