in reply to Re^2: Merging files, 1 line for every 10
in thread Merging files, 1 line for every 10

OK. But doing a "1 line from file A followed by 9 lines from file B", you are actually handling a degenerate case where all requests are artificially spaced in an even way. Wouldn't it be more "real" to randomly determine from which file to read the next request:
if (int(rand(10) = 0)) { # read from file A } else { # read from file B }

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James