Is there a way to create a tempfile, without having it opened? I have to run an executable, redirect it\'s output to a file, and then read & parse that. Everything creat
You can also use Dir::Tmpname
Dir::Tmpname.create('your_application_prefix') { |path| puts path }
path will contain unique path
See https://github.com/ruby/ruby/blob/ruby_1_9_3/lib/tmpdir.rb#L116