From: Michael Linfield Date: 2008-04-06T07:52:44+09:00 Subject: Re: memory allocation failure: heavy files Effect achieved via: @store = [] IO.foreach("testpart.txt"){|x| @store << x.split(" ").grep(/#{format}/)} #format is a Regexp - Mac -- Posted via http://www.ruby-forum.com/.