Creating the temporary file
-
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:1234System.out.println("The default system temporary directory is:" + (String)System.getProperty("java.io.tmpdir"));System.out.println("The path to the temporary file is:" + (String)globalMap.get("tCreateTemporaryFile_1_FILEPATH"));
Document get from Talend https://help.talend.com
Thank you for watching.
Subscribe
Login
0 Comments