Safest way to incrementally append to a file?
I’m performing some calculations to generate chaotic solutions to a mathematical function. I have an infinite loop that looks something like this:
File read/modify/write successful but file unchanged
I’m a using the following code to output the contents of an array of lines to a file. The code works perfectly locally. The code appears to be successful when running on the server according to the debug messages. The problem is the file is unchanged. Here’s the code: