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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7df2baf73b28aa5d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-05 12:19:01 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stueberl.de!newsr1.ipcore.viaginterkom.de!btnet-peer1!btnet-feed5!btnet!news.btopenworld.com!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada Subject: Re: socket, pipe Date: Wed, 5 Nov 2003 20:18:57 +0000 (UTC) Organization: BT Openworld Message-ID: References: <56a4b188.0311040645.64f825f7@posting.google.com> <56a4b188.0311050545.77dc9cdf@posting.google.com> NNTP-Posting-Host: host81-128-232-157.in-addr.btopenworld.com X-Trace: sparta.btinternet.com 1068063537 12124 81.128.232.157 (5 Nov 2003 20:18:57 GMT) X-Complaints-To: news-complaints@lists.btinternet.com NNTP-Posting-Date: Wed, 5 Nov 2003 20:18:57 +0000 (UTC) X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MSMail-Priority: Normal X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:2104 Date: 2003-11-05T20:18:57+00:00 List-Id: "ghostie" 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