Ofcourse it's slow. You are scanning an entire file2 for every line in file1. This means that your your execute time is approximately square of the size of the file
You could have done some search here, thats ok, I got you some node which already discussed here,read out this node.
compare records in two csv files
In reply to Re: joined records from multiple csv
by vinoth.ree
in thread joined records from multiple csv
by sheolikar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |