Jump to content

Recommended Posts

Posted

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

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

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...