From: "Yancy B." Date: 2013-04-08T23:35:09+09:00 Subject: Re: Writing to an open IO stream from a method. Robert Klemme wrote in post #1104870: >...it's more likely that it has to do with the fact that you do not close the file handle properly. This is not the complete code. I close the file further down, as I had more things to write to it. The problem was that the stream was not being sent to the method and instead I was getting an error. But it's working now anyway, thanks. Thanks, - Yancy -- Posted via http://www.ruby-forum.com/.