From: RichardOnRails Date: 2009-03-24T14:21:57+09:00 Subject: Re: Problem writing a text file On Mar 23, 11:56 pm, Hassan Schroeder wrote: > On Mon, Mar 23, 2009 at 8:16 PM, RichardOnRails > > 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.schroe...@gmail.com Hi Hassan, Once more, you've pulled my fat out of the fire. I apologize for bothering people on this newsgroup with my stupidity. Thank you very much for you help. Best wishes, Richard