Hi All,

Im having a lot of problems trying to work out a piece of code for a small program.

What im trying to do is to write a function which reads each line of a text file called 'FILE1' into a new record in an array. I then want to do the same with another text file called 'FILE2'. This should allow me to compare each records of 'ARRAY1' to each record of 'ARRAY2' and report if they are the same.

e.g.

FILE 1 / ARRAY 1 FILE 2 / ARRAY 2 MATCH?
AAAA DDDD Yes (As D is in both)
BBBB EEEE NO
CCCC FFFF NO
DDDD GGGG NO


Im sorry to put such a simple diagram in but couldn't think how else to explain it.

Thank you so much for any help, ideas, thoughts or code,
Leo2010