日期:2014-05-17 浏览次数:20698 次
Quote: 引用: string[] lines = str.Split(new string[] { "^^^^^^\r\n" }, StringSplitOptions.RemoveEmptyEntries); foreach (string line in lines) { string[] cols = line.Split('^'); ... } 好了,那如果我要判定有多少个"^"号呢?怎么弄?
string[] lines = str.Split(new string[] { "^^^^^^\r\n" }, StringSplitOptions.RemoveEmptyEntries); foreach (string line in lines) { string[] cols = line.Split('^'); ... }