Is this functionality available somewhere? I can't find it...
TIA
Andrew Walrond
Is this functionality available somewhere? I can't find it...
TIA
Andrew Walrond
Andrew Walrond wrote:
Is this functionality available somewhere? I can't find it...
TIA
The Tempfile class should do what you want
(taken from the Pickaxe II)
require "tempfile"
tf = TempFile.new("afile")
tf.path #=> "/tmp/afile28519.0"
tf.puts("Cosi Fan Tutte")
tf.close
HTH
--
mark sparshatt
I'd looked at that, but the file gets deleted when the Tempfile object is
finalised. I want the file to stick around after my ruby script exits.
Andrew
On Monday 18 April 2005 10:56, mark sparshatt wrote:
Andrew Walrond wrote:
> Is this functionality available somewhere? I can't find it...
>
> TIAThe Tempfile class should do what you want