From: Brad Date: 2009-09-21T22:35:09+09:00 Subject: Reading and Writing to Tempfile 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? I don't seem to be able to do that. Every time I write to the file it only or over writes what is in the file. require 'tempfile' temp = Tempfile.new("stuff") name = temp.path temp.puts "I was here" temp.close # here I'd like to reopen the file and write another line #later temp.open str = temp.gets # I was here temp.close(true) What am I doing wrong? Any help is good, thank you. Tex