Re: Temporary Files Rant
- From: Lothar Kimmeringer <news200703@xxxxxxxxxxxxxx>
- Date: Sat, 31 Mar 2007 00:07:38 +0200
The Ghost In The Machine wrote:
File workFile = File.createTempFile("~myapp", ".temp");
workFile.deleteOnExit();
:-)
I'm not sure where it will put the result in Windows; on
Linux it stuck it in /tmp. The generated numbers appear
to have no real intelligent relationship with the process
ID or with anything else that's obvious.
As we germans say: Wowereit
If you can predict names of temporary files, you can do
some nice hacking.
Regards, Lothar
--
Lothar Kimmeringer E-Mail: spamfang@xxxxxxxxxxxxxx
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!
.
- References:
- Temporary Files Rant
- From: Roedy Green
- Re: Temporary Files Rant
- From: The Ghost In The Machine
- Re: Temporary Files Rant
- From: Roedy Green
- Re: Temporary Files Rant
- From: The Ghost In The Machine
- Temporary Files Rant
- Prev by Date: Re: Temporary Files Rant
- Next by Date: Re: What is up at SavaJe ?
- Previous by thread: Re: Temporary Files Rant
- Next by thread: Re: Temporary Files Rant
- Index(es):
Relevant Pages
|