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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f21254a134eb566 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-09 05:15:37 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!proxad.net!usenet-fr.net!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: Marius Amado Alves Newsgroups: comp.lang.ada Subject: Re: read file into array to compare Date: Tue, 9 Mar 2004 13:27:19 +0000 Organization: Cuivre, Argent, Or Message-ID: References: <98776e3e.0403090355.7d2f402e@posting.google.com> Reply-To: amado.alves@netcabo.pt NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1078838054 76080 212.85.156.195 (9 Mar 2004 13:14:14 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Tue, 9 Mar 2004 13:14:14 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: User-Agent: KMail/1.4.3 In-Reply-To: <98776e3e.0403090355.7d2f402e@posting.google.com> X-Virus-Scanned: by amavisd-new-20030616-p7 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:6186 Date: 2004-03-09T13:27:19+00:00 > Could someone give me a start please. > a scratchy example would be ideal. procedure Scratchy_Example is type Record is array (1 .. 3) of Unbounded_String; A, B : Record; No_More_Records : exception; procedure Get_Record (X : out Record) is ... function Upto_Comma (X : Unbounded_String) return String is ... ... begin loop Get_Record (A); Get_Record (B); if Upto_Comma (A (1)) =3D Upto_Comma (B (1)) and A (3) =3D B (3) then Show_Records; end if; end loop; exception when No_More_Records =3D> Done; end;