czhe Posted February 22, 2010 Share Posted February 22, 2010 Hi all, I have some code that writes to a file using: _FileCreate($fileName) _FileWriteToLine($fileName, 1, $timeCount, 1) The second command gets called periodically to write the current value to the same file and it just keeps replacing the first line of text. While the code is running, I can open the text file and it will have the latest value at all times. However, if my system unexpectedly crashes, the text file will have nothing in it upon system recovery. Is there any way to write the file so that its contents are always saved and will retain even after a crash? Thanks for any input, czhe Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now