J
J
John_Nash2021-10-20 15:37:44
C++ / C#
John_Nash, 2021-10-20 15:37:44

How to update text in a file?

The application executes the task by logging the state of the task to a file at regular intervals.
The file is written via File.WriteAllText
The problem is that when the application stops, the file is deleted, and a new one is not created in its place. Is there any easy alternative to do the same without this bug?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-10-20
@GavriKos

The problem is that when the application is stopped, the file is deleted

And shouldn't. It means there is a deletion somewhere. Is your code?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question