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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,379f47ddd474c3f0,start X-Google-Attributes: gid103376,public From: kilgallen@eisner.decus.org (Larry Kilgallen) Subject: Re: real time sharing of files by Ada and C on DEC system Date: 1998/11/19 Message-ID: <1998Nov19.144524.1@eisner>#1/1 X-Deja-AN: 413616425 X-Nntp-Posting-Host: eisner.decus.org References: <365445e0.1685548@news.netrax.net> X-Trace: news.decus.org 911504730 16879 KILGALLEN [192.67.173.2] Organization: LJK Software Reply-To: Kilgallen@eisner.decus.org.nospam Newsgroups: comp.lang.ada Date: 1998-11-19T00:00:00+00:00 List-Id: In article <365445e0.1685548@news.netrax.net>, wyeru@athotmail.com (Mike) writes: > I have a requirement to open a file in Ada. As the data is being placed in the file by the Ada program, a second file is opened > which identifies which data elements in the first go together. There are several data sets in the file. I have a requirement to > generate a C program on a DEC system to access both files and pull out a particular data set as the Ada program is still running. > > Any pointers or experience doing something like this? I need to know what key words and tricky phrases to look for in the manuals > to make sure the two programs can use the files at the same time. Since you don't further qualify "DEC system" I will presume VMS. Just make sure your "FORM" parameter on the Ada OPEN call specifies that the appropriate level of file sharing is permitted. Once a record has been written by Ada, it will be accessible to C (or any other language), even though the file is still open for write. Of course you have to take the same precautions with your C program.