using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO; namespace FileTest { class Program { static void Main(string[] args) { WriteFile(); ReadFile(); Console.ReadKey(); }…