最近在用串口做一台设备自动配置的程序.设备里有16张卡.当我下查看的命令以后,用serialport.ReadExisting(" ");方法以后,得到16张卡的配置信息:
"location:1-1-1,software version=Ver01.01,state=IS;"
"location:1-1-2,software version=Ver01.02,state=OOS;"
.
.
.
"location:1-1-16,software version=Ver01,01,state=IS"我想把每一行的location,software version和state 组成一个字符串.
如第1行得到的字符串为:"1-1-1"+"Ver01.01"+"IS".
求助???