czhe Posted February 22, 2010 Share Posted February 22, 2010 Hi all, I have some code that creates a text file using: _FileCreate($fileName) and periodically writes to it using: _FileWriteToLine($fileName, 1, $timeCount, 1) While the code is running, I can open it at any time and it will have an updated value. My problem is that I need to retain the latest contents in this file in the event of a crash. I noticed that if I reset the computer while the code is running, the text file will be empty upon system recovery. What can I do save the data permanently in the text file each time something is written to it? 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