Answer the question
In order to leave comments, you need to log in
C# Unity How to clear a text file(.txt)?
I write to the log file like this. You need to clear it when you start the program again. I did not find how to do it. Log is the path to the file.
File.AppendAllText(Log, DateTime.Now + ": " + Message);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question