From: Albert Schlef Date: 2010-03-03T13:07:02+09:00 Subject: Re: A gem for handling temporary file(s)? Paul Harrington wrote: > Albert Schlef wrote: >> I'm writing a program that needs to generate two or three temporary >> files. >> >> (Specifically: my program runs a shell command and I need to pass the >> shell command a path to a non-existing file which it will dump data to.) [...] > ri Tempfile > > that'll get you started Thanks! I didn't know about Tempfile. Though I have a little problem: Tempfile let me *open* a new temporary file. But I just need to generate a temporary file *name*, which I'll pass to a shell command. I guess I'll immediately close the handle Tempfile.new() returns and pass its path() to the shell command. -- Posted via http://www.ruby-forum.com/.