c#如何识别txt被分段的字符串
例
test.txt
----------------------------
aaa#aaa#aaa#aaa#aaa#aaa#b
bb#aaa#aaa#*
aaa#aaa#aaa#aaa#aaa#aaa#bb
b#aaa#aaa#*
aaa#aaa#aaa#aaa#aaa#aaa#b
bb#aaa#aaa#*
aaa#aaa#aaa#aaa#aaa#aaa#aaa#bbb#aaa#*
----------------------------
其实还有识别# # 之间的字符串 并连接到 access , 但已经解决
请问 应该如何 识别 被分段的#bbb# 呢 或者取消分段 谢谢-
------解决方案--------------------Split(new string[] { "\r\n" }, StringSplitOptions.None)切割
------解决方案-------------------- var dad = "a\r\nb\nc\rd".Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);