If you don't need the entire file at once, don't read it all at once.
Abigail
In reply to Re: Eating RAM problem by Abigail-II in thread Eating RAM problem by TheFifthDeuce