Skip to main content

Include Calls

Currently, there is on call to include more JS files

include(String: file)

Include will execute the file. Useful for adding libraries, keep in mind if the include is requested N times with the same file, it will execute the file N times. The file is relative to the current file.


readBytes(String:file) → byte[]

Reads a binary file and returns a byte[]. Example:

var myStringVar = new java.lang.String(readBytes("{ds}/binary.dat"));
assertEquals("hello world", myStringVar);
var $aJsonString = new java.lang.String(readBytes("{mds}/somejsonfile.json"));
var jsonObj = JSON.parse($aJsonString);


createFolder(String:folder)

Creates a folder with provide name


Last updated: April 14, 2023

If you have any feedback on this topic, please contact us at documentation@appvance.ai