How would I rename or move a file on the controller?
Here is the context. I would continually be writing to a file called “cloud_data.txt” with different charts. Every once in a while I would want to send the data in the file to a web server. I want to rename the file to something like “cloud_data_processing.txt”. The charts would notice that there was no longer a “cloud_data.txt” file (because it had been renamed), create it and continue writing any new data to it.
I would have a separate subroutine that would process through “cloud_data_processing.txt” sending it to my web server and then delete it.
This would insure that I grab the current data set within “cloud_data.txt” without missing any other data that might be written to it while I’m processing it.