On Mon, Mar 23, 2009 at 8:16 PM, RichardOnRails <RichardDummyMailbox58407 / uscomputergurus.com> wrote: > I've put out a snippet of the relevant code and debugging output at > http://www.pastie.org/425055. > Does anybody see any obvious (or subtle) error? Quick glance: File.open('fn', 'w') -- you're opening a file named 'fn', not the file with the name represented by the variable fn . HTH, -- Hassan Schroeder ------------------------ hassan.schroeder / gmail.com