Nested loops mean that for every line in the outer loop, the inner loop will run once. You're not walking through the two files in parallel, as you see.
Why don't you just read both files into two arrays and iterate over the arrays?
In reply to Re: Using multiple input files #2
by Corion
in thread Using multiple input files #2
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |