From: Robert Klemme Date: 2013-04-08T17:39:42+09:00 Subject: Re: Writing to an open IO stream from a method. --047d7b5d5a3868414104d9d55d08 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Apr 7, 2013 at 9:46 PM, Yancy B. wrote: > And as soon as I post this it starts working... WTF? > > I guess sometimes typing out a question just makes it work... > No, it's more likely that it has to do with the fact that you do not close the file handle properly. Better use the block form of File.open. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --047d7b5d5a3868414104d9d55d08 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable


Cheer= s

--047d7b5d5a3868414104d9d55d08--