comp.lang.ada
 help / color / mirror / Atom feed
From: davidmcroberts@hotmail.com (david)
Subject: read file into array to compare
Date: 9 Mar 2004 03:55:08 -0800
Date: 2004-03-09T03:55:08-08:00	[thread overview]
Message-ID: <98776e3e.0403090355.7d2f402e@posting.google.com> (raw)

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.



             reply	other threads:[~2004-03-09 11:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-09 11:55 david [this message]
2004-03-09 12:14 ` read file into array to compare Samuel Tardieu
2004-03-09 12:19 ` Preben Randhol
2004-03-09 13:27 ` Marius Amado Alves
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox