On Friday, 11 April 2003 at  2:25:48 +0900, Robert Klemme wrote:
> 
> "Jim Freeze" <jim / freeze.org> schrieb im Newsbeitrag
> news:20030410124342.A7291 / freeze.org...
> > On Friday, 11 April 2003 at  1:27:25 +0900, nobu.nokada / softhome.net
> 
> Not as far as I know. But you can simulate this with String#each by
> reading the whole file in one go and then iterating:
> 
> contents = f.read()
> contents.each {|line|
>   # processing...
> }
> 
> or work directly on contents by using String#sub!
> 

Hmm..., that would be a problem since the files are 200MB - 900MB.

> Did you try to use "file.sync= false" in conjunction with "file.flush"?

No. I will try.

> Did you try reading the whole file in with "contents = file.read()" and
> then do line by line processing by doing "contents.each { |line| .... }?
> 
> And: did you make sure that IO is the problem and not the processing part?
> 
The processing right now is nil.

-- 
Jim Freeze