标签:
读取出来的数据
1 string[] identities = Encoding.GetEncoding("gbk").GetString(buffers) 2 .Split(new char[] { ‘\r‘, ‘\n‘ }) 3 .Where((s) => !string.IsNullOrEmpty(s)) 4 .ToArray();
1 var temp = Encoding.GetEncoding("gbk").GetString(buffers); 2 var tempFileName = "temp.txt"; 3 File.WriteAllText(tempFileName, temp, Encoding.UTF8); 4 string[] identities = File.ReadAllLines(tempFileName);
标签:
原文地址:http://www.cnblogs.com/liunlls/p/file.html