I'm developing a custom script in TDI. This script sends emails out based on a returned array.
As the emails are sent, I open up a file using the function system.openFileForOutput
Then I write the current email number, (1, 2, 3, etc).
Then I close the system.openFileForOutput
.
So if I stop the script in the middle before it reaches the close statement, the file becomes empty and I don't know where the emails stopped.
I need some advice. How can I save the email # the script is at without losing the location?