From: "Aaron D. Gifford" Date: 2011-01-20T11:34:11+09:00 Subject: Re: Each roll-over in File? On Wed, Jan 19, 2011 at 5:56 PM, Don Wilde wrote: ... > ... block appears to be rolling over and repeating lines from the beginning > of the file. ... >                        @src_file.each do | line | >                            while @lines_to_do < 1 do >                                update_state_n_format( pdf ) >                                @next = true if @lines_to_do <= 0 >                            end >                            process_line( line, pdf ) >                            @lines_to_do -= 1 >                        end ... Are you positive that nothing in update_state_n_format() or process_line() is touching @src_file and perhaps rewinding the file's read position? Wondering, Aaron out.