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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2f21254a134eb566,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-09 03:55:08 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: davidmcroberts@hotmail.com (david) Newsgroups: comp.lang.ada Subject: read file into array to compare Date: 9 Mar 2004 03:55:08 -0800 Organization: http://groups.google.com Message-ID: <98776e3e.0403090355.7d2f402e@posting.google.com> NNTP-Posting-Host: 195.137.41.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078833308 26313 127.0.0.1 (9 Mar 2004 11:55:08 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 9 Mar 2004 11:55:08 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:6183 Date: 2004-03-09T03:55:08-08:00 List-Id: hey, Absoulte Beginner!! Don't want to give up. Use array, record, an array of records how? How to compare array or records (so not to do it one at a time) trying to read a text file with names and address and postcodes. I've written; do you want to process file which file to proccess, and check if file is there, then.... Need to read txt file, (format: 3 lines of text, empty line, 3 lines of text, empty line and so on) need to store so to compare first line upto a ',' and after ',' the rest of line second line completly third line completly Then have to check if BOTH first line upto',' and third line are same. if they are i've to put the both entries (all 3 lines of each on screen) Could someone give me a start please. a scratchy example would be ideal.