OK, I used this as file_1 (member.txt in my code):
Code:
Batch number: 17 created from 01/04/2002 to 30/04/2006
Client name Date Item TAX Total
Ms. Jacky Ward 21/04/2006 699 $0.00 $113.00
Ms. Shirley BANNISTER 18/04/2006 870 $11.3 $642.00
Mrs. Rex chapman 24/04/2006 850 $7.41 $741.00
Mr. JOHN PANOV 24/04/2006 800 $0.00 $99.00
Mr. Joe Yu 9/02/2006 321 $0.00 $250
I used this as file_2 (cost.txt in my code):
Code:
Date PO # Invoice# Supplier Name Amount
10/04/2006 Chapman IN110026 ABC PTY LTD $660.00
04/05/2006 BATHGATE IN554446 EF Suplierx $880.00
9/03/2006 burk IN556546 COLLEGE of foot $60.00
21/02/2006 Yu 879786 Swmining Co $70
I just copy and pasted them from your first post. And I used the examples of output you wanted to write the code I came up with (I put commas around fields with spaces in them to make it easier to distinguish them from adjacent fields.) The code I used I already posted. When I use the above files and run the code I get this output:
Code:
Client_name Date Item TAX Total PO# Invoice# Supplier Amount Earn
"Rex chapman" 24/04/2006 850 7.41 741.00 Chapman IN110026 "ABC PTY LTD" $660.00 81
"Joe Yu" 9/02/2006 321 0.00 250 Yu 879786 "Swmining Co" $70 180
Batch_No Client name Date Item TAX Total
17 "JOHN PANOV" 24/04/2006 800 0.00 99.00
17 "Jacky Ward" 21/04/2006 699 0.00 113.00
17 "Shirley BANNISTER" 18/04/2006 870 11.3 642.00
The two blank lines in the middle are just visually seperate the found and not found parts from each other.