Creating and reading files
Was this helpful?
In the Eliona system, you can create and read files through your scripts by using the method eliona.OpenFile() uses the Python function internally open() and behaves identically.
Python open(): For all details on using open() read the official Python documentation.
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.
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")Was this helpful?
Was this helpful?