急!新手,麻烦高手来帮下改代码。。。。
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())