fflush(stdout) after each line of stats