in reply to Iterating through HUGE FILES
What makes you think it's hanging and not taking a long time? What makes you think the problem isn't with "do stuff here"?
By the way, I'm curious as to why you named the input file handle "OUT".