From: Paul Harrington Date: 2010-03-03T11:25:58+09:00 Subject: Re: A gem for handling temporary file(s)? 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.) > > Is there a 'gem' that manages these things? Preferably it should remove > the files when the script finishes or whatever. > > Of course, if Ruby supports this built-in that's fine too (I did 'ri > File' and 'ri FileUtils' but founds nothing). ri Tempfile that'll get you started -- Posted via http://www.ruby-forum.com/.