C# program to write text to a file
File.WriteAllText() This is a static strategy for “Document” class, which is utilized to compose all content (went as a contention) in a record. Note: If the record doesn’t exist at a predetermined area, this technique makes the document first and afterwards compose all content to the document. Program: Output