From: "Kristian Sørensen" Date: 2004-03-15T10:04:34+09:00 Subject: Ruby 1.8.1 write to file? Hi! I have upgraded to ruby 1.8.1 .. and suddenly now my file-writing does not work. I get an error like: script:line:in `close': uninitialized stream (IOError) The code looks like this: File.open("e_macs.txt", "a") { |f| f << Time.new.to_s f << "\n" } What happend in writing to files from 1.6 to 1.8? I tried my way through rubycentral.com .. but apparently the API is not updated. How do I handle file writing (or reading) in Ruby 1.8? Cheers, Kristian S�rensen.