日期:2014-05-18 浏览次数:21072 次
string[] temp = File.ReadAllLines(@"C:\1.txt", Encoding.GetEncoding("GB2312")); temp = temp.ToList().Distinct().ToArray(); File.WriteAllLines(@"C:\1.txt", temp);