Name

tempFile — These methods create unique, not previously used file names.

Overview

These methods create unique, not previously used file names. If files are created using these names they will be deleted when the Patchworks program exits.

Syntax

String tempFile ( String suffix ) 

The command has the following arguments:

suffix

The suffix to append on to the file name.

Description

Create a temporary file name, and arrange for any file created with this name to be deleted when the program exits. The file name will be relative to the default directory for temporary files.

The method returns the temporary file name.

Return value

The temporary file name.

Syntax

String tempFile ( ) 

Description

Create a temporary file name with a suffix of "tmp".

The method returns the temporary file name.

Return value

The temporary file name.

Syntax

String tempFile ( String suffix , String dirName ) 

The command has the following arguments:

suffix

The suffix to append on to the file name.

dirName

The name of the directory part of the temporary file.

Description

Create a temporary file name, and arrange for any file created with this name to be deleted when the program exits. The file will be relative to the specified directory.

Return value

The temporary file name.