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,FREEMAIL_FROM,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7a042905ca129849,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-08 16:08:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.telusplanet.net!peer1-sjc1.usenetserver.com!usenetserver.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 24.68.22.66 From: "devine" Newsgroups: comp.lang.ada Subject: Record concatenation? X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Sat, 08 Jun 2002 23:08:57 GMT NNTP-Posting-Host: 24.69.255.206 X-Complaints-To: abuse@shaw.ca X-Trace: news2.calgary.shaw.ca 1023577737 24.69.255.206 (Sat, 08 Jun 2002 17:08:57 MDT) NNTP-Posting-Date: Sat, 08 Jun 2002 17:08:57 MDT Organization: Shaw Residential Internet Xref: archiver1.google.com comp.lang.ada:25568 Date: 2002-06-08T23:08:57+00:00 List-Id: Can someone tell me how to concant records in ada? For example say you have a record: TYPE Sales IS RECORD SaleNo : Integer; SalesmanNo : String(1..20); END RECORD; SalesData : Array(1..10) OF Sales; The data for the record is read from a file, say the file contains: 1234 Some Name 1234 Some Name 1235 Someone Else What is the easiest way to join the first 2 records so that if you write back to the file or display the data to the screen it displays: 1234 Some Name 1235 Someone Else I was thinking of checking if the previous number was the same as the next number and then add the previous number to a subtotal, and if the number was diff it would do to the next number and so on. Is thier a simpler way?