Create a temporary file

Sometimes it come in handy to create a temporary file.
Here we create a temporary file with the prefix “temp_” as shown by the first parameter.
The second parameter is an optional suffix, if it’s null as in the example, .tmp will be
used by default.
Optionally a third parameter can be defined pointing out the directory in which the file will
be created. If not specified (as below), the default temporary directory will be used.

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?