日期:2014-05-17 浏览次数:20771 次
string line = string.Empty; StreamReader sr = new StreamReader("test.txt", Encoding.Default); while ((line = sr.ReadLine()) != null) { string[] items = line.Split('\t'); Console.WriteLine(string.Join("-", items)); }