It might be simplest to loop while (!eof(A) or !eof(B)), and then read a line of each (if available) inside the loop body.
In reply to Re: Reading concurrently two files with different number of lines
by Anonymous Monk
in thread Reading concurrently two files with different number of lines
by frogsausage
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |