Jump to content
Sign in to follow this  
czhe

Problem writing to text file

Recommended Posts

czhe

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

Share this post


Link to post
Share on other sites
99ojo

Hi,

deja vu?

Please answer to your 1st post.

Double posting could cause some allergic reactions......

;-))

Stefan

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.