I am writing data out to a file within Main()...but how do I keep this file open (without f.close() during each iteration) for as long as the script is active and how would I clean up after a script exits, such as cleaning out global values, close files, etc.
I assume there are 3 ways for a script to exit:
1) reload
2) remove
3) the chart hosts the script gets closed.
Any advise would be greatly appreciated. Thanks.
I assume there are 3 ways for a script to exit:
1) reload
2) remove
3) the chart hosts the script gets closed.
Any advise would be greatly appreciated. Thanks.
Comment