
Trying to Delete a temp file
Yes I'm new at this. Yes I feel pretty stupid to have to ask this. But...
In the following script, how do I delete the file when I'm done with it?
sL1 = "Line 1"
sL2 = "Line 2"
set oFS = CreateObject("Scripting.FileSystemObject")
set oTF = oFS.CreateTextFile("C:\~tmp.txt", 2)
oTF.Write sL1 & vbNewline & sL2
oTF.Close
'Do stuff w/ ~tmp.txt
oTF.Delete '<----- Object doesn't support this property... error
Thanks.