C#读取文件中的浮点数据
2021-01-03 00:29
标签:pre debug err pen 浮点 arp result toe out C#读取文件中的浮点数据 标签:pre debug err pen 浮点 arp result toe out 原文地址:https://www.cnblogs.com/yl-xy/p/13215542.htmlstring path = "test.txt";
FileStream fs = new FileStream(path, FileMode.Open);
StreamReader sr = new StreamReader(fs);
char[] separator = new char[] { ‘ ‘, ‘,‘, ‘\t‘, ‘\r‘, ‘\n‘ };
string txt = sr.ReadToEnd().Trim().Replace("\r\n\r\n", "\r\n");
string[] lines = txt.Split(separator);
List