Creating and reading files
Overview
In the Eliona system, you can create and read files through your scripts by using the method eliona.OpenFile() to do so. This method internally uses the Python function open() and behaves identically.
Example:
def UserFunction(id, eliona):
f = eliona.OpenFile("example_file.txt", "w")
f.write("This is a test content.\n")
f.close()If you open() If you want to use it directly, remember to specify the full path correctly.
Storing files in the SSR pod and using them from scripts
It is possible to store files (Excel, TXT, etc.) in the SSR pod under /ssr/user/ and access them from the Script Engine.
f = eliona.OpenFile("example_file.txt", "w")Last updated
Was this helpful?