- 积分
- 3477
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-4-27
- 最后登录
- 1970-1-1
|
发表于 2014-10-9 08:12:52
|
显示全部楼层
本帖最后由 redersun 于 2014-10-9 09:02 编辑
下载回来看了下,感觉很不完善,比如降水数据,作者本来是要处理所有的方式位的(string[] elementRains = new string[] { "R0", "R2", "R6" };),但在具体处理的时候却将碰到第一个段结束符“=”作为雨量数据结束符,而跳出循环,这样只能处理方式位2,即只有一段数据的情况
while ((currentLine = reader.ReadLine()) != null)
{
// 去掉最后一行记录中的"="
if (currentLine.EndsWith("="))
{
currentLine = currentLine.Replace("=", "");
messList.Add(currentLine);
break;
}
messList.Add(currentLine);
}
|
|