file a file b 1 read a line from a 2 read a line from b 3 read a line from a 4 read a line from b ... #### while(){ #read a line while(){ #read a line last; # go back to the main loop, but how to continue from this point in the next iteration ? } }