in reply to Iterating single line within a For Loop
for(<INFILE>) (note:no capital F), slurps the whole file before starting to iterate. You need to use while(<INFILE>).