if (line == "New") //跳过符号定义区
{
while (line.Contains("EndNew") == false)
{
line = sr.ReadLine();
if (line.Contains("EndNew") == true)
break;
}
}
if (line == "Class") //开始读取图形数据树形结构,并加载到TreeView的节点中
{
while (line != "")
{
classStr[classIdx] = lineStr[1];
LayerTree.Nodes.Add(lineStr[1]);
classIdx = classIdx + 1;
line = sr.ReadLine();
lineStr = line.Split(new char[] { ' ' });
line = lineStr[0];
}
line = sr.ReadLine();
classNum = classIdx;
.....
.....
}
3.geomap 等值线数据格式说明及读取(正则表达式的用法)
4.Zmap ASCII文本格式的读取(非Grid)
5.C#基础使用
待续....