in reply to Using multiple input files #2
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?
|
|---|