On Sep 21, 2009, at 6:35 AM, Brad wrote:

> Hello,
>
> I'm having a hard time getting tempfile to work correctly for me. I
> have a couple of questions
>
> Isn't it possible to open a tempfile, write to it, close it then later
> open it again write to it and close it?

Check the documentation on IO (I know, I know...the class is "File"  
but all the important documentation is under "IO"). Specifically, you  
want to set the mode on the file to "a" instead of just "w" when you  
open it.

- Josh