- if (line[strlen(line)-1]=='\n') line[strlen(line)-1]='\0';
- strcpy(line,strtok(line,"="));
- strcpy(val, strtok(NULL,"="));
- if (strcmp(line,"node_number")==0) {NodeNumber = atoi(val);};
- if (strcmp(line,"type")==0) {if (strcmp(val,"explicit")==0) ConType=1; else
+ QStringList l = QStringList::split("=",line,FALSE);
+ QStringList::Iterator it = l.begin();
+ line = *it;
+ ++it;
+ val = *it;
+ val = val.stripWhiteSpace();
+ if (line == "node_number") {NodeNumber = val.toInt();};
+ if (line == "type") {if (val=="explicit") ConType=1; else