Robert Klemme wrote:
> At least one can use Tempfile for this, e.g.
> 
> Tempfile "prefix", "/tmp" do |io|
>   io.write everything
> 
>   io.seek 0
>   whatever_load_routine io
> end

or rather:

Tempfile.open "prefix", "/tmp" do |io|
  io.write everything
  io.flush
  whatever_load_routine io.path
end
-- 
Posted via http://www.ruby-forum.com/.