日期:2014-05-18 浏览次数:20739 次
StreamReader sr = new StreamReader(@"C:\Documents and Settings\Administrator\桌面\21.txt", Encoding.GetEncoding("GB2312")); StreamWriter sw = new StreamWriter(@"C:\Documents and Settings\Administrator\桌面\22.txt"); while (!sr.EndOfStream) { string [] s=sr.ReadLine ().Split (char["\t"]);//怎么写才正确? }
.Split("\t".ToCharArray())
------解决方案--------------------
string [] s=sr.ReadLine ().Split ("\t".ToCharArray())