From: Simon Strandgaard Date: 2003-11-17T10:56:41+09:00 Subject: Re: file-backed array of classes? On Fri, 14 Nov 2003 20:59:47 +0900, Rasputin wrote: > I'm at the 'get the unit tests of the simplest possible implementation to > pass' stage, and need something like an append-only file of fixed > size records (data blocks). Have we got classes or methods to do > record-based file IO? I dont mind reinventing a wheel otherwise. record-based file IO, can you explain further? > Next problem (I learned to never look more than 1 problem ahead or I > never start anything). I need an index that gets dynamically updated as > the record file is written to. I have written a robust-iterator primitive, where iterators gets notified when somebody insert/delete data, so they iterator keeps pointing at the same position. http://rubyforge.org/cgi-bin/viewcvs/cgi/viewcvs.cgi/projects/experimental/iterator2/?cvsroot=aeditor -- Simon Strandgaard