From: Robert Klemme Date: 2009-07-06T19:55:25+09:00 Subject: Re: file.seek and unused bytes 2009/7/6 Brian Candler : > Robert Klemme wrote: >>> Yep, already done that. Where this 'holes' business comes in, is that to >>> stay below the 4GB limit, the data has to be processed and the file >>> written out in chunks. Each chunk may have a unique line length. So, we >>> find the longest line of the chunk, and write records at that interval >>> using seek. Each record terminates with a line feed. >> >> Errr, I am not sure I fully understand your approach.  What you write >> sounds like if you end up with a file containing multiple sections >> which each have lines with identical length. > > My reading of the description was that each "chunk" was a separate file, > and so all the records within that file had the same line length, but I > could be wrong. But he writes "the file" which makes me think that there is only one output file. Also, the 4GB limit seems to indicate that we are talking about a single large file. Greg, help! ;-) Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/