From: Hugh Sasse Staff Elec Eng Date: 2001-02-16T05:32:47+09:00 Subject: [ruby-talk:10928] Re: Mashal.dump 10000 records, Marshal.load only reads 9939 records On Fri, 16 Feb 2001, Mike Stok wrote: > On Fri, 16 Feb 2001, Michael Davis wrote: > > > The problem is that it only reads 9895 rows. Is this a bug? Can someone > > tell me where 105 of my rows went? > > They're probably lurking in the writing file's buffer. Try adding an > fp.close, it worked for me. > File.open() can be followed by a block, which is useful because the close is done for you. It keeps you code well structured, too. Hugh