using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.IO;//添加引用System.IO namespace ConsoleApplication1 { class Program { static void Main(string[] args) { //字符串数组用System.IO.Fi…