SyntaxFix
Write A Post
Hire A Developer
Questions
Use the File.WriteAllText method. It creates the file if it doesn't exist and overwrites it if it exists.
File.WriteAllText