Double-click tCreateTemporaryFile to open
its Basic settings view.
Select the Remove file when execution is
over check box to delete the created temporary file after the
Job execution.
Select the Use default temporary system
directory check box to create the file in the default system
temporary directory.
In the Template field, enter the
temporary file name which should contain the characters XXXX. In this example, it is talend_XXXX.
In the Suffix field, enter the filename
extension of the temporary file. In this example, it is dat.
Double-click tJava to open its Basic settings view.
In the Code field, enter the following
code to display the default system temporary directory and the path to the
temporary file that will be created on the console:
System.out.println("The default system temporary directory is:\r" + (String)System.getProperty("java.io.tmpdir"));
System.out.println("The path to the temporary file is:\r" + (String)globalMap.get("tCreateTemporaryFile_1_FILEPATH"));
Did this page help you?
If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!