comp.lang.ada
 help / color / mirror / Atom feed
* read file into array to compare
@ 2004-03-09 11:55 david
  2004-03-09 12:14 ` Samuel Tardieu
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: david @ 2004-03-09 11:55 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-09 13:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-09 11:55 read file into array to compare david
2004-03-09 12:14 ` Samuel Tardieu
2004-03-09 12:19 ` Preben Randhol
2004-03-09 13:27 ` Marius Amado Alves

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