I have been using below script to wrote myVar to an external file but now along with this, I want to write Timestamp too.
It should be like myVar Timestamp (space between the two)
var myVar= context.variableManager.getValue("Var");
if (myVar==null )
{
context.fail("No values");
}
writeFile(myVar);
}
function writeFile(text)
{
var writer = new java.io.FileWriter("C:\\Users\\\\Desktop\\test.csv",true);
writer.write(text);
writer.write("\r\n");
writer.close();
}