tJava example
In the following example, the tJava component will execute a piece of Java code to:
-
create a directory D:/myFolder.
-
define a global variable named output_file that represents the output stream target D:/myFolder/people.txt.
setSettings {
CODE : "new java.io.File(\"D:/myFolder\").mkdirs();
globalMap.put(\"output_file\",new java.io.FileOutputStream(\"D:/myFolder/people.txt\"));"
}