Friday, 23 August 2013

Practical Use to Temp Files

Practical Use to Temp Files

What would be a practical use for temporary files (see code below)?
File temp = File.createTempFile("temp-file-name", ".tmp");
Why can't you store the data you would keep in the file in some variables?
If the file is (probably) going to be deleted on the program exit (as
"temp" implies), why even create them?

No comments:

Post a Comment