SyntaxFix
Write A Post
Hire A Developer
Questions
Use File.AppendAllText instead:
File.AppendAllText(filePath + "log.txt", log);